aboutsummaryrefslogtreecommitdiffstats
path: root/net
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
commit396e4d0cc2c5d824c09fd21316fabe755265c6b0 (patch)
treee1381b9ba3bdf52f9afe296c65a5f4cb7a2fe113 /net
parent2e154c965c798c38f6fd8daefb1b613d03a8f8f6 (diff)
downloadprosody-396e4d0cc2c5d824c09fd21316fabe755265c6b0.tar.gz
prosody-396e4d0cc2c5d824c09fd21316fabe755265c6b0.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')
-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