mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 13:47:41 +03:00
net.server_epoll: Trigger onconnect for TLS connections when writable after handshake
This commit is contained in:
parent
1a8fd7920f
commit
f91a22024b
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue