projects
/
m6w6
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
40d1c3b
)
Fix such that a close on the socket short's faster.
author
Brian Aker
<brian@tangent.org>
Tue, 12 Jun 2012 23:31:42 +0000
(
00:31
+0100)
committer
Brian Aker
<brian@tangent.org>
Tue, 12 Jun 2012 23:31:42 +0000
(
00:31
+0100)
libmemcached/io.cc
patch
|
blob
|
history
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;
}