diff options
author | Kim Alvefur <zash@zash.se> | 2016-08-18 16:12:28 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-08-18 16:12:28 +0200 |
commit | e2506e369e325236110ac8a098759d199181fbd2 (patch) | |
tree | bd759c6698bafc9f99f99057f0878b7d369d2073 /net/server_epoll.lua | |
parent | 859c2b7a13544a77a9373c3c92d4f869b2b96fea (diff) | |
download | prosody-e2506e369e325236110ac8a098759d199181fbd2.tar.gz prosody-e2506e369e325236110ac8a098759d199181fbd2.zip |
net.server_epoll: Remove read timeout when waiting to read more from buffer
Diffstat (limited to 'net/server_epoll.lua')
-rw-r--r-- | net/server_epoll.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua index a6716cd9..39cd8a58 100644 --- a/net/server_epoll.lua +++ b/net/server_epoll.lua @@ -271,9 +271,11 @@ function interface:onreadable() self:destroy() return; end - self:setreadtimeout(); if self.conn:dirty() then + self:setreadtimeout(false); self:pausefor(cfg.read_retry_delay); + else + self:setreadtimeout(); end end |