Software /
code /
prosody
Diff
net/server_epoll.lua @ 7600:a18532076efe
net.server_epoll: Trigger onconnect for TLS connections when writable after handshake
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 18 Aug 2016 17:15:32 +0200 |
parent | 7599:afbda0bd9cfc |
child | 7601:ce20546d7714 |
line wrap: on
line diff
--- a/net/server_epoll.lua Thu Aug 18 17:13:22 2016 +0200 +++ b/net/server_epoll.lua Thu Aug 18 17:15:32 2016 +0200 @@ -404,8 +404,11 @@ self._tls = true; self.starttls = false; if old == false then - self:on("connect"); + self.onwriteable = interface.onconnect; + self:setflags(false, true); + self:setwritetimeout(); else + self:setflags(true, true); self:on("status", "ssl-handshake-complete"); end elseif err == "wantread" then