aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-07-25 17:26:11 +0200
committerKim Alvefur <zash@zash.se>2020-07-25 17:26:11 +0200
commit2d4006b1c87861ed8f2442c214ad9d8c96f7b771 (patch)
tree5f9b60dec8397bb0a5ab8694f291ca2cd2afb345 /net
parent1ed0b6ce1271c9b67042860b6fca0dad96ddf21c (diff)
downloadprosody-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.lua5
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;