Software /
code /
prosody
Diff
net/server_epoll.lua @ 7590:fd07ab702f83
net.server_epoll: Remove read timeout when waiting to read more from buffer
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 18 Aug 2016 16:12:28 +0200 |
parent | 7589:125e4f2e0b65 |
child | 7591:138f16eb39fb |
line wrap: on
line diff
--- a/net/server_epoll.lua Thu Aug 18 16:06:18 2016 +0200 +++ b/net/server_epoll.lua Thu Aug 18 16:12:28 2016 +0200 @@ -271,9 +271,11 @@ 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