# HG changeset patch # User Kim Alvefur # Date 1626179266 -7200 # Node ID 8253f6a30afc06044f30f75587d5e752a9326e92 # Parent 3ab8496579f138e4cbbba399e2cab8d972a8001f net.server_epoll: Use TLS handshake timeout after initiating handshake The :init() method sets a different timeout than the TLS related methods. diff -r 3ab8496579f1 -r 8253f6a30afc net/server_epoll.lua --- a/net/server_epoll.lua Tue Jul 13 14:20:26 2021 +0200 +++ b/net/server_epoll.lua Tue Jul 13 14:27:46 2021 +0200 @@ -613,7 +613,9 @@ 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()