diff options
author | Håvard Pettersen <havardpe@oath.com> | 2019-03-21 11:27:13 +0000 |
---|---|---|
committer | Håvard Pettersen <havardpe@oath.com> | 2019-03-21 11:27:13 +0000 |
commit | 292d69cc55e2947022ea6555bff16ebb80a32d57 (patch) | |
tree | 56e3405d010c20c9bdbfddfd371b475ed7840be8 | |
parent | 573e322c1ac89e4c8b9f5a7f9e9784c23db2a2f0 (diff) |
set incoming connections to non-blocking
-rw-r--r-- | vespalib/src/vespa/vespalib/portal/portal.cpp | 1 |
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) |