diff options
author | Kim Alvefur <zash@zash.se> | 2021-08-16 20:15:38 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-08-16 20:15:38 +0200 |
commit | 76189039ae0f355abfae3d642b2d32e41fd224e5 (patch) | |
tree | 923fe0c7a5db804dd98f78495d03caa8ee256227 | |
parent | 48216c1dc849292323b016660e851f58aae2e325 (diff) | |
download | prosody-76189039ae0f355abfae3d642b2d32e41fd224e5.tar.gz prosody-76189039ae0f355abfae3d642b2d32e41fd224e5.zip |
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.
-rw-r--r-- | net/server_epoll.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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); |