aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_epoll.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-08-18 16:12:28 +0200
committerKim Alvefur <zash@zash.se>2016-08-18 16:12:28 +0200
commit5d28e09198cbc1daa71d5068f522e47f27b5dcb8 (patch)
treebd759c6698bafc9f99f99057f0878b7d369d2073 /net/server_epoll.lua
parent0b703f4c2c02808ade48d1ca7b051c8036e781e5 (diff)
downloadprosody-5d28e09198cbc1daa71d5068f522e47f27b5dcb8.tar.gz
prosody-5d28e09198cbc1daa71d5068f522e47f27b5dcb8.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.lua4
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