diff options
author | Kim Alvefur <zash@zash.se> | 2019-03-28 12:52:55 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-03-28 12:52:55 +0100 |
commit | c422e8f13401e50cb13384227f97df3ad55605fd (patch) | |
tree | e1381b9ba3bdf52f9afe296c65a5f4cb7a2fe113 | |
parent | e34e8e845dec33f78f2c2173fcd5c22a5b433bfb (diff) | |
download | prosody-c422e8f13401e50cb13384227f97df3ad55605fd.tar.gz prosody-c422e8f13401e50cb13384227f97df3ad55605fd.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.
-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 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 |