# HG changeset patch # User Kim Alvefur # Date 1569763120 -7200 # Node ID 05ba04725a1590b21994601557c945bd18d3ee37 # Parent f90abf142d5342304790b76d97e53d012592a1ee net.server_epoll: Add some timeout related logging diff -r f90abf142d53 -r 05ba04725a15 net/server_epoll.lua --- a/net/server_epoll.lua Sun Sep 29 15:05:17 2019 +0200 +++ b/net/server_epoll.lua Sun Sep 29 15:18:40 2019 +0200 @@ -261,8 +261,10 @@ 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 @@ self._writetimeout:reschedule(gettime() + t); else self._writetimeout = addtimer(t, function () + self:debug("Write timeout"); self:on("disconnect", "write timeout"); self:destroy(); end);