aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-08-10 21:10:17 +0200
committerKim Alvefur <zash@zash.se>2016-08-10 21:10:17 +0200
commitc2d5f9a1fa51b8e08f4f77c08128374ed4262ba3 (patch)
tree702944d54de13e1ddf80139b6e7f64f4f105eece /net
parentd60907bc227f7434a7ca36ba93b09e4e30696187 (diff)
downloadprosody-c2d5f9a1fa51b8e08f4f77c08128374ed4262ba3.tar.gz
prosody-c2d5f9a1fa51b8e08f4f77c08128374ed4262ba3.zip
net.server_epoll: Some logging when closing a connection
Diffstat (limited to 'net')
-rw-r--r--net/server_epoll.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index 5b61bd26..f191a74e 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -298,8 +298,10 @@ interface.send = interface.write;
function interface:close()
if self._wantwrite then
+ log("debug", "Close %s after writing", tostring(self));
self._toclose = true;
else
+ log("debug", "Close %s", tostring(self));
self.close = noop;
self.listeners.ondisconnect(self);
self:destroy();