aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-07-17 14:51:50 +0200
committerKim Alvefur <zash@zash.se>2021-07-17 14:51:50 +0200
commitaba20a09bf1033b1f9c8ab2830d7d58970dd717f (patch)
tree005dc4fe01b44d93e95ebadfd2e073cee99e73cd /net
parentdecfa3a59d8de0c90a6dfde6fb13f834ee84262e (diff)
downloadprosody-aba20a09bf1033b1f9c8ab2830d7d58970dd717f.tar.gz
prosody-aba20a09bf1033b1f9c8ab2830d7d58970dd717f.zip
net.server_epoll: Skip reset of read timeout when not reading
Should avoid rare but needless timer interactions
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 3260ec23..ae8a66bb 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -458,7 +458,8 @@ function interface:onreadable()
return;
end
end
- if self._wantread and self.conn:dirty() then
+ if not self._wantread then return end
+ if self.conn:dirty() then
self:setreadtimeout(false);
self:pausefor(cfg.read_retry_delay);
else