memcached_behavior() causes commands to be buffered until they are flushed to
[m6w6/libmemcached] / lib / memcached_io.c
index 84928d2b40b5459e42acd1c7160d2e4d0a0acd31..38580638d7f197c81d373373954cb299b8aabc98 100644 (file)
@@ -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;