projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
Fix such that a close on the socket short's faster.
[m6w6/libmemcached]
/
libmemcached
/
io.cc
diff --git
a/libmemcached/io.cc
b/libmemcached/io.cc
index c848b6318e5bd5f7e14960bd2be16028aaa2b5cb..56239529eb2918a664c0d6971b51c92d1bc796f2 100644
(file)
--- a/
libmemcached/io.cc
+++ b/
libmemcached/io.cc
@@
-213,6
+213,10
@@
static memcached_return_t io_wait(memcached_server_write_instance_st ptr,
if (active_fd >= 1)
{
+ if (fds.revents & POLLHUP)
+ {
+ break;
+ }
assert_msg(active_fd == 1 , "poll() returned an unexpected value");
return MEMCACHED_SUCCESS;
}