net.server_epoll: Use TLS handshake timeout after initiating handshake

The :init() method sets a different timeout than the TLS related methods.
This commit is contained in:
Kim Alvefur 2021-07-13 14:27:46 +02:00
parent 72fae8bef7
commit 063a7e45a3

View file

@ -613,7 +613,9 @@ function interface:inittls(tls_ctx)
self.ondrain = nil;
self.onwritable = interface.tlshandshake;
self.onreadable = interface.tlshandshake;
return self:init();
self:setreadtimeout(cfg.ssl_handshake_timeout);
self:setwritetimeout(cfg.ssl_handshake_timeout);
self:add(true, true);
end
function interface:tlshandshake()