aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_epoll.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-03-28 12:52:55 +0100
committerKim Alvefur <zash@zash.se>2019-03-28 12:52:55 +0100
commitfd450216aeeff7c6b6eead732059f7b7326843a0 (patch)
treee1381b9ba3bdf52f9afe296c65a5f4cb7a2fe113 /net/server_epoll.lua
parent7e47a9ca354d57919ceb04c1073d89b419f5e178 (diff)
downloadprosody-fd450216aeeff7c6b6eead732059f7b7326843a0.tar.gz
prosody-fd450216aeeff7c6b6eead732059f7b7326843a0.zip
net.server_epoll: Skip delayed continuation read on paused connections
This should prevent #1333 in cases where LuaSockets buffer is "dirty", i.e. contains more data after a read, where it gets resumed with a short delay.
Diffstat (limited to 'net/server_epoll.lua')
-rw-r--r--net/server_epoll.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index cffd3a84..c41266e1 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -373,7 +373,7 @@ function interface:onreadable()
end
end
if not self.conn then return; end
- if self.conn:dirty() then
+ if self._wantread and self.conn:dirty() then
self:setreadtimeout(false);
self:pausefor(cfg.read_retry_delay);
else