aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/server_epoll.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index c3354006..250ce4d0 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -261,8 +261,10 @@ function interface:setreadtimeout(t)
else
self._readtimeout = addtimer(t, function ()
if self:on("readtimeout") then
+ self:debug("Read timeout, handled");
return cfg.read_timeout;
else
+ self:debug("Read timeout, fatal");
self:on("disconnect", "read timeout");
self:destroy();
end
@@ -284,6 +286,7 @@ function interface:setwritetimeout(t)
self._writetimeout:reschedule(gettime() + t);
else
self._writetimeout = addtimer(t, function ()
+ self:debug("Write timeout");
self:on("disconnect", "write timeout");
self:destroy();
end);