diff options
author | Kim Alvefur <zash@zash.se> | 2016-08-18 17:15:32 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-08-18 17:15:32 +0200 |
commit | f91a22024be743bd8ed3cfdf25a9ef2f99052cc6 (patch) | |
tree | 5f1eb7ad8219d3fa368fb3f93078360eb2ea0633 /net | |
parent | 1a8fd7920f15c0783c5957ec217723e92fa44b10 (diff) | |
download | prosody-f91a22024be743bd8ed3cfdf25a9ef2f99052cc6.tar.gz prosody-f91a22024be743bd8ed3cfdf25a9ef2f99052cc6.zip |
net.server_epoll: Trigger onconnect for TLS connections when writable after handshake
Diffstat (limited to 'net')
-rw-r--r-- | net/server_epoll.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua index c4ae7133..708d4ba5 100644 --- a/net/server_epoll.lua +++ b/net/server_epoll.lua @@ -404,8 +404,11 @@ function interface:tlshandskake() 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 |