summaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorHåvard Pettersen <havardpe@oath.com>2019-03-21 11:27:13 +0000
committerHåvard Pettersen <havardpe@oath.com>2019-03-21 11:27:13 +0000
commit292d69cc55e2947022ea6555bff16ebb80a32d57 (patch)
tree56e3405d010c20c9bdbfddfd371b475ed7840be8 /vespalib
parent573e322c1ac89e4c8b9f5a7f9e9784c23db2a2f0 (diff)
set incoming connections to non-blocking
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 ec2f1b78c03..47719ea4c69 100644
--- a/vespalib/src/vespa/vespalib/portal/portal.cpp
+++ b/vespalib/src/vespa/vespalib/portal/portal.cpp
@@ -141,6 +141,7 @@ Portal::evict_handle(uint64_t handle)
void
Portal::handle_accept(portal::HandleGuard guard, SocketHandle socket)
{
+ socket.set_blocking(false);
socket.set_keepalive(true);
new HttpConnection(std::move(guard), _reactor, _crypto->create_crypto_socket(std::move(socket), true),
[this](HttpConnection *conn)