aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-09-29 15:18:40 +0200
committerKim Alvefur <zash@zash.se>2019-09-29 15:18:40 +0200
commit4f848e3ea0c92e545b9d162d55959e4f281aca70 (patch)
treebaf5873035acbeaff51052558d3426c813e7cc5f /net
parent2c3bd063b9f6b729b2b1592f964444aecc10de5b (diff)
downloadprosody-4f848e3ea0c92e545b9d162d55959e4f281aca70.tar.gz
prosody-4f848e3ea0c92e545b9d162d55959e4f281aca70.zip
net.server_epoll: Add some timeout related logging
Diffstat (limited to 'net')
-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);