diff options
author | Kim Alvefur <zash@zash.se> | 2020-07-25 17:26:11 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-07-25 17:26:11 +0200 |
commit | 2d4006b1c87861ed8f2442c214ad9d8c96f7b771 (patch) | |
tree | 5f9b60dec8397bb0a5ab8694f291ca2cd2afb345 /net | |
parent | 1ed0b6ce1271c9b67042860b6fca0dad96ddf21c (diff) | |
download | prosody-2d4006b1c87861ed8f2442c214ad9d8c96f7b771.tar.gz prosody-2d4006b1c87861ed8f2442c214ad9d8c96f7b771.zip |
net.server_epoll: Log debug message when a connection errors on read
It's confusingly quiet otherwise, even with maximum verboseness.
Thanks perflyst
Diffstat (limited to 'net')
-rw-r--r-- | net/server_epoll.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua index f767db78..32b2f032 100644 --- a/net/server_epoll.lua +++ b/net/server_epoll.lua @@ -405,6 +405,11 @@ function interface:onreadable() self:onincoming(partial, err); end if err ~= "timeout" then + if err == "closed" then + self:debug("Connection closed by remote"); + else + self:debug("Read error, closing (%s)", err); + end self:on("disconnect", err); self:destroy() return; |