Skip to content

Commit

Permalink
memcached: close socket at the end of request handling
Browse files Browse the repository at this point in the history
Fixes #64
  • Loading branch information
Gleb Natapov authored and avikivity committed Oct 21, 2015
1 parent 6af5a0d commit c2ee27a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/memcached/memcache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1305,6 +1305,8 @@ class tcp_server {
return conn->_proto.handle(conn->_in, conn->_out).then([conn] {
return conn->_out.flush();
});
}).finally([conn] {
return conn->_out.close().finally([conn]{});
});
});
}).or_terminate();
Expand Down

0 comments on commit c2ee27a

Please sign in to comment.