X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=lib%2Fmemcached_hosts.c;h=fb53fa229c9f471a35a1e6b004bb22a60e9a12dd;hb=5ed23cb1d7aaa03f05b58dfeabeee72f5aff91c5;hp=de006dd6794b6b5125583e24dfa2bd10e5786d78;hpb=013715211f094bb98ab7ed830b6cd24328641eba;p=awesomized%2Flibmemcached diff --git a/lib/memcached_hosts.c b/lib/memcached_hosts.c index de006dd6..fb53fa22 100644 --- 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; + if (ptr) + host->next_retry= ptr->retry_timeout; host->sockaddr_inited= MEMCACHED_NOT_ALLOCATED; }