# HG changeset patch # User Matthew Wild # Date 1591017971 -3600 # Node ID 472fe13a05f992447927e0ba904111bcc22545e8 # Parent 0107ed6744aa4670bdd6455272c120d24dece9ca net.server_epoll: Handle missing ports from getsock/peername (as in the case of unix sockets) diff -r 0107ed6744aa -r 472fe13a05f9 net/server_epoll.lua --- a/net/server_epoll.lua Mon Jun 01 13:43:35 2020 +0100 +++ b/net/server_epoll.lua Mon Jun 01 14:26:11 2020 +0100 @@ -619,11 +619,11 @@ local conn = self.conn; local ok, peername, peerport = pcall(conn.getpeername, conn); if ok and peername then - self.peername, self.peerport = peername, peerport; + self.peername, self.peerport = peername, peerport or 0; end local ok, sockname, sockport = pcall(conn.getsockname, conn); if ok and sockname then - self.sockname, self.sockport = sockname, sockport; + self.sockname, self.sockport = sockname, sockport or 0; end end