diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-08-24 12:29:40 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-08-24 12:29:40 +0200 |
commit | 4da9f9b5be88a0145fe9b85198f012d925f3efff (patch) | |
tree | 062792b8eced136dd76241042a5a86b5e8cd478a | |
parent | b200104cf2c61465acecaca111e3ec727fc3b954 (diff) |
Default defer to on for SSL listeners
Issue #1112
-rw-r--r-- | src/listensocket.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/listensocket.cpp b/src/listensocket.cpp index fb9f2a0ef..13aebf75f 100644 --- a/src/listensocket.cpp +++ b/src/listensocket.cpp @@ -59,7 +59,8 @@ ListenSocket::ListenSocket(ConfigTag* tag, const irc::sockets::sockaddrs& bind_t if (rv >= 0) rv = SocketEngine::Listen(this->fd, ServerInstance->Config->MaxConn); - int timeout = tag->getInt("defer", 0); + // Default defer to on for TLS listeners because in TLS the client always speaks first + int timeout = tag->getInt("defer", (tag->getString("ssl").empty() ? 0 : 3)); if (timeout && !rv) { #if defined TCP_DEFER_ACCEPT |