From 76189039ae0f355abfae3d642b2d32e41fd224e5 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 16 Aug 2021 20:15:38 +0200 Subject: net.server_epoll: Split, attempt to clarify dirty noise message Only relevant because a "dirty" connection (with incoming data in LuaSocket's buffer) does not count as "readable" according to epoll, so special care needs to be taken to keep on processing it. --- net/server_epoll.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/server_epoll.lua b/net/server_epoll.lua index 60ecb687..eb2d0d77 100644 --- a/net/server_epoll.lua +++ b/net/server_epoll.lua @@ -801,8 +801,9 @@ function interface:pausefor(t) self._pausefor = addtimer(t, function () self._pausefor = nil; self:set(true); - self:noise("Resuming after pause, connection is %s", not self.conn and "missing" or self.conn:dirty() and "dirty" or "clean"); + self:noise("Resuming after pause"); if self.conn and self.conn:dirty() then + self:noise("Have buffered incoming data to process"); self:onreadable(); end end); -- cgit v1.2.3