Software /
code /
prosody
Changeset
11014:05fefde93036
net.server_epoll: Log debug message when a connection errors on read
It's confusingly quiet otherwise, even with maximum verboseness.
Thanks perflyst
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 25 Jul 2020 17:26:11 +0200 |
parents | 11013:bb010c3c8c93 |
children | 11017:1f41f38a92f7 |
files | net/server_epoll.lua |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/net/server_epoll.lua Mon Jun 29 21:03:13 2020 +0200 +++ b/net/server_epoll.lua Sat Jul 25 17:26:11 2020 +0200 @@ -405,6 +405,11 @@ 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;