X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=lib%2Fmemcached_io.c;h=38580638d7f197c81d373373954cb299b8aabc98;hb=cfe8176feba42fc63e8f627f9ac613a12a368b92;hp=84928d2b40b5459e42acd1c7160d2e4d0a0acd31;hpb=90c4182ab1eb7f2da203258f62cf33a229ba1346;p=m6w6%2Flibmemcached diff --git a/lib/memcached_io.c b/lib/memcached_io.c index 84928d2b..38580638 100644 --- a/lib/memcached_io.c +++ b/lib/memcached_io.c @@ -57,7 +57,7 @@ void memcached_io_preread(memcached_st *ptr) for (x= 0; x < ptr->number_of_hosts; x++) { - if (ptr->hosts[x].cursor_active && + if (memcached_server_response_count(ptr, x) && ptr->hosts[x].read_data_length < MEMCACHED_MAX_BUFFER ) { size_t data_read;