aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/server_epoll.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index 52a7f4f3..3260ec23 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -657,7 +657,6 @@ function interface:inittls(tls_ctx, now)
end
function interface:tlshandshake()
- self:setwritetimeout(false);
self:setreadtimeout(false);
self:noise("Continuing TLS handshake");
local ok, err = self.conn:dohandshake();
@@ -668,6 +667,7 @@ function interface:tlshandshake()
else
self:debug("TLS handshake complete");
end
+ self:setwritetimeout(false);
self.onwritable = nil;
self.onreadable = nil;
self:on("status", "ssl-handshake-complete");