summaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorHåvard Pettersen <havardpe@oath.com>2018-12-07 15:14:23 +0000
committerHåvard Pettersen <havardpe@oath.com>2018-12-07 15:14:23 +0000
commit7d02e9623e395cfb94711df25dcfe874ed412ac1 (patch)
tree12b9ec83b1875df0a6258e4664208bb1b56c2fd4 /vespalib
parent7ba28f6a6d3c1e1bb8195c7c0b81b36abe3327f8 (diff)
avoid zombie connections
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/portal/portal.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/vespalib/src/vespa/vespalib/portal/portal.cpp b/vespalib/src/vespa/vespalib/portal/portal.cpp
index cfd80b41ac7..031f364faff 100644
--- a/vespalib/src/vespa/vespalib/portal/portal.cpp
+++ b/vespalib/src/vespa/vespalib/portal/portal.cpp
@@ -113,6 +113,7 @@ Portal::evict_handle(uint64_t handle)
void
Portal::handle_accept(portal::HandleGuard guard, SocketHandle socket)
{
+ socket.set_keepalive(true);
new HttpConnection(std::move(guard), _reactor, _crypto->create_crypto_socket(std::move(socket), true),
[this](HttpConnection *conn)
{