diff options
author | Kim Alvefur <zash@zash.se> | 2021-07-17 14:06:57 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-07-17 14:06:57 +0200 |
commit | decfa3a59d8de0c90a6dfde6fb13f834ee84262e (patch) | |
tree | ba7463fc545c1b478b280d2e61d4f60950b123fb /net | |
parent | d2678dfdee75b1112a0c55405ac0e6e1842ac45e (diff) | |
download | prosody-decfa3a59d8de0c90a6dfde6fb13f834ee84262e.tar.gz prosody-decfa3a59d8de0c90a6dfde6fb13f834ee84262e.zip |
net.server_epoll: Reduce timer churn during TLS handshake
Instead of removing and readding the timer, keep it and adjust it
instead. Should reduce garbage production a bit.
Diffstat (limited to 'net')
-rw-r--r-- | net/server_epoll.lua | 2 |
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"); |