From: Michael Wallner Date: Tue, 21 Jan 2020 17:45:54 +0000 (+0100) Subject: libmemcached: fix #53 with supplied patch X-Git-Tag: pre_cmake~16 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=5dcfd8799e2ab7d60b8d3b352474d43556d37dcf;p=m6w6%2Flibmemcached libmemcached: fix #53 with supplied patch --- diff --git a/libmemcached/response.cc b/libmemcached/response.cc index 79ab7e65..554f6dce 100644 --- a/libmemcached/response.cc +++ b/libmemcached/response.cc @@ -783,7 +783,7 @@ static memcached_return_t binary_read_one_response(memcached_instance_st* instan case PROTOCOL_BINARY_CMD_REPLACEQ: case PROTOCOL_BINARY_CMD_APPENDQ: case PROTOCOL_BINARY_CMD_PREPENDQ: - return binary_read_one_response(instance, buffer, buffer_length, result); + return MEMCACHED_FETCH_NOTFINISHED; default: break; @@ -849,7 +849,9 @@ static memcached_return_t _read_one_response(memcached_instance_st* instance, memcached_return_t rc; if (memcached_is_binary(instance->root)) { - rc= binary_read_one_response(instance, buffer, buffer_length, result); + do { + rc= binary_read_one_response(instance, buffer, buffer_length, result); + } while (rc == MEMCACHED_FETCH_NOTFINISHED); } else {