diff options
author | dormando <dormando@rydia.net> | 2013-12-08 12:48:32 -0800 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2013-12-08 12:53:57 -0800 |
commit | b2734f8321230bd52e36df7f82a6b1d71532e496 (patch) | |
tree | e2ab5a1f4b35a38a601ec991da0a2d37142a9bee | |
parent | 7068e52aa30a5178265549d433d7289ef056b6a3 (diff) | |
download | memcached-b2734f8321230bd52e36df7f82a6b1d71532e496.tar.gz |
Close connection on update_event error for new cmd
Issue 261. If an update_event fails for case conn_new_cmd but no
more events happen on this socket, conn_closing will never be
processed.
Not sure if it's possible for this to happen, but it could
theoretically leak refcounts.
-rw-r--r-- | memcached.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/memcached.c b/memcached.c index 52929ec..86dfe88 100644 --- a/memcached.c +++ b/memcached.c @@ -3860,6 +3860,7 @@ static void drive_machine(conn *c) { if (settings.verbose > 0) fprintf(stderr, "Couldn't update event\n"); conn_set_state(c, conn_closing); + break; } } stop = true; |