aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/server_epoll.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index 2dfd44e8..f6a71379 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -635,8 +635,9 @@ function interface:tlshandshake()
self.onwritable = nil;
self.onreadable = nil;
self:on("status", "ssl-handshake-complete");
- self:setwritetimeout();
self:set(true, true);
+ self:onconnect();
+ self:onreadable();
elseif err == "wantread" then
self:noise("TLS handshake to wait until readable");
self:set(true, false);