Software /
code /
prosody
Comparison
net/server_epoll.lua @ 7555:f3abb5f891eb
net.server_epoll: Some logging when closing a connection
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 10 Aug 2016 21:10:17 +0200 |
parent | 7554:c2decf88e249 |
child | 7556:1f777b38b66c |
comparison
equal
deleted
inserted
replaced
7554:c2decf88e249 | 7555:f3abb5f891eb |
---|---|
296 end | 296 end |
297 interface.send = interface.write; | 297 interface.send = interface.write; |
298 | 298 |
299 function interface:close() | 299 function interface:close() |
300 if self._wantwrite then | 300 if self._wantwrite then |
301 log("debug", "Close %s after writing", tostring(self)); | |
301 self._toclose = true; | 302 self._toclose = true; |
302 else | 303 else |
304 log("debug", "Close %s", tostring(self)); | |
303 self.close = noop; | 305 self.close = noop; |
304 self.listeners.ondisconnect(self); | 306 self.listeners.ondisconnect(self); |
305 self:destroy(); | 307 self:destroy(); |
306 end | 308 end |
307 end | 309 end |