From 4da9f9b5be88a0145fe9b85198f012d925f3efff Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Wed, 24 Aug 2016 12:29:40 +0200 Subject: Default defer to on for SSL listeners Issue #1112 --- src/listensocket.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3