aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/server_epoll.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index 3260ec23..ae8a66bb 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -458,7 +458,8 @@ function interface:onreadable()
return;
end
end
- if self._wantread and self.conn:dirty() then
+ if not self._wantread then return end
+ if self.conn:dirty() then
self:setreadtimeout(false);
self:pausefor(cfg.read_retry_delay);
else