projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
MEMCACHED_BEHAVIOR_RETRY_TIMEOUT added for timeout
[awesomized/libmemcached]
/
lib
/
memcached_hosts.c
diff --git
a/lib/memcached_hosts.c
b/lib/memcached_hosts.c
index de006dd6794b6b5125583e24dfa2bd10e5786d78..fb53fa229c9f471a35a1e6b004bb22a60e9a12dd 100644
(file)
--- a/
lib/memcached_hosts.c
+++ b/
lib/memcached_hosts.c
@@
-61,6
+61,8
@@
static void host_reset(memcached_st *ptr, memcached_server_st *host,
host->fd= -1;
host->type= type;
host->read_ptr= host->read_buffer;
host->fd= -1;
host->type= type;
host->read_ptr= host->read_buffer;
+ if (ptr)
+ host->next_retry= ptr->retry_timeout;
host->sockaddr_inited= MEMCACHED_NOT_ALLOCATED;
}
host->sockaddr_inited= MEMCACHED_NOT_ALLOCATED;
}