Fix for bug #15450
[awesomized/libmemcached] / libmemcached / io.c
index 179bdc48121b2cce451b33e2b5d5de6e261bda34..3b8943c8dc31c1c00a0f0bc0b1705cb8f150f6e8 100644 (file)
@@ -127,10 +127,15 @@ static bool process_input_buffer(memcached_server_instance_st *ptr)
    */
     memcached_callback_st cb= *ptr->root->callbacks;
 
+    ptr->root->options.is_processing_input= true;
+
     char buffer[MEMCACHED_DEFAULT_COMMAND_SIZE];
     memcached_return_t error;
     error= memcached_response(ptr, buffer, sizeof(buffer),
                               &ptr->root->result);
+
+    ptr->root->options.is_processing_input = false;
+
     if (error == MEMCACHED_SUCCESS)
     {
       for (unsigned int x= 0; x < cb.number_of_callback; x++)