projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Fix for bug #15450
[m6w6/libmemcached]
/
libmemcached
/
response.c
diff --git
a/libmemcached/response.c
b/libmemcached/response.c
index 37a06f44dda10268f647fc54135f2eaa5486c545..f9269e55b1e67dc5e3cd4f3d83aa15ab39b4f623 100644
(file)
--- a/
libmemcached/response.c
+++ b/
libmemcached/response.c
@@
-47,8
+47,10
@@
memcached_return_t memcached_response(memcached_server_instance_st *ptr,
memcached_result_st *result)
{
/* We may have old commands in the buffer not set, first purge */
memcached_result_st *result)
{
/* We may have old commands in the buffer not set, first purge */
- if (ptr->root->flags.no_block)
+ if ((ptr->root->flags.no_block) && (ptr->root->options.is_processing_input == false))
+ {
(void)memcached_io_write(ptr, NULL, 0, 1);
(void)memcached_io_write(ptr, NULL, 0, 1);
+ }
/*
* The previous implementation purged all pending requests and just
/*
* The previous implementation purged all pending requests and just