projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Fixed mget_execute possibly failing into some non ending recursive call
[awesomized/libmemcached]
/
libmemcached
/
memcached_response.c
diff --git
a/libmemcached/memcached_response.c
b/libmemcached/memcached_response.c
index fe13ddd53f8045efabdfb51e8fd4fbf583f21555..01db41690978ba501b3254809f245d6a0ce0fc80 100644
(file)
--- a/
libmemcached/memcached_response.c
+++ b/
libmemcached/memcached_response.c
@@
-44,7
+44,7
@@
memcached_return memcached_response(memcached_server_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 & MEM_NO_BLOCK
)
+ if (
(ptr->root->flags & MEM_NO_BLOCK) && (!ptr->root->processing_input)
)
(void)memcached_io_write(ptr, NULL, 0, 1);
/*
(void)memcached_io_write(ptr, NULL, 0, 1);
/*