# HG changeset patch # User Kim Alvefur # Date 1525281657 -7200 # Node ID 2bfe963f304198e0e1da4c07c7a2f23b57ea2e5b # Parent e7d4344e0fea81e73c1a93e7f57157eef6b94672 net.server_epoll: Retry retrieving peername once connected diff -r e7d4344e0fea -r 2bfe963f3041 net/server_epoll.lua --- a/net/server_epoll.lua Wed May 02 19:20:29 2018 +0200 +++ b/net/server_epoll.lua Wed May 02 19:20:57 2018 +0200 @@ -540,6 +540,9 @@ -- Connected! function interface:onconnect() + if self.conn and not self.peername then + self.peername, self.peerport = self.conn:getpeername(); + end self.onconnect = noop; self:on("connect"); end