Software /
code /
prosody
Changeset
9932:df73ca804719 0.11
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.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 28 Mar 2019 12:52:55 +0100 |
parents | 9931:485231f8b75d |
children | 9933:aac4c55721f9 9952:6402bc76f51a |
files | net/server_epoll.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/net/server_epoll.lua Thu Mar 28 12:31:14 2019 +0100 +++ b/net/server_epoll.lua Thu Mar 28 12:52:55 2019 +0100 @@ -373,7 +373,7 @@ 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