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
commit7c00bae93a5034e1fdcae5ed2052439fe995a709 (patch)
tree5f9b60dec8397bb0a5ab8694f291ca2cd2afb345 /net
parent0314b7063c4487231a71e3c16b326aeb4bb75032 (diff)
downloadprosody-7c00bae93a5034e1fdcae5ed2052439fe995a709.tar.gz
prosody-7c00bae93a5034e1fdcae5ed2052439fe995a709.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;