Software /
code /
prosody
Diff
net/server_epoll.lua @ 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 |
parent | 10992:df3ee12acd8c |
child | 11068:988ddd57e851 |
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;