diff options
-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 |