diff options
author | Kim Alvefur <zash@zash.se> | 2018-05-02 19:20:57 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-05-02 19:20:57 +0200 |
commit | 9bb53a64b8ce62ce09e51e9b4237de4fbdeaffdf (patch) | |
tree | ff3b69945185d87a609fd19abcce37b8d91ac674 /net | |
parent | 14009b5cbdd87033281dea9925ce3173f87a0610 (diff) | |
download | prosody-9bb53a64b8ce62ce09e51e9b4237de4fbdeaffdf.tar.gz prosody-9bb53a64b8ce62ce09e51e9b4237de4fbdeaffdf.zip |
net.server_epoll: Retry retrieving peername once connected
Diffstat (limited to 'net')
-rw-r--r-- | net/server_epoll.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua index e9d37426..4e2faf1b 100644 --- a/net/server_epoll.lua +++ b/net/server_epoll.lua @@ -540,6 +540,9 @@ end -- 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 |