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 | 7c00bae93a5034e1fdcae5ed2052439fe995a709 (patch) | |
tree | 5f9b60dec8397bb0a5ab8694f291ca2cd2afb345 /net | |
parent | 0314b7063c4487231a71e3c16b326aeb4bb75032 (diff) | |
download | prosody-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.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; |