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 | d4c35255c06539fdc928b3b12df61f2ebd09ad64 (patch) | |
tree | e1381b9ba3bdf52f9afe296c65a5f4cb7a2fe113 /net | |
parent | 2e154c965c798c38f6fd8daefb1b613d03a8f8f6 (diff) | |
download | prosody-d4c35255c06539fdc928b3b12df61f2ebd09ad64.tar.gz prosody-d4c35255c06539fdc928b3b12df61f2ebd09ad64.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.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 |