diff options
author | Kim Alvefur <zash@zash.se> | 2016-08-18 17:17:16 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-08-18 17:17:16 +0200 |
commit | cd87e3b71948c1d44720c597d2ff652bc5c6c724 (patch) | |
tree | 980fcf98cc8efb477ed098ad4a52cd49ec0f9064 | |
parent | 1d132becbc04010a2a7d25bef5097be25c036220 (diff) | |
download | prosody-cd87e3b71948c1d44720c597d2ff652bc5c6c724.tar.gz prosody-cd87e3b71948c1d44720c597d2ff652bc5c6c724.zip |
net.server_epoll: Make sure wantwrite is set when starting TLS
-rw-r--r-- | net/server_epoll.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua index 7d279035..e485802f 100644 --- a/net/server_epoll.lua +++ b/net/server_epoll.lua @@ -378,6 +378,7 @@ function interface:starttls(ctx) if self.writebuffer and self.writebuffer[1] then log("debug", "Start TLS on %s after write", tostring(self)); self._starttls = true; + self:setflags(nil, true); -- make sure wantwrite is set else log("debug", "Start TLS on %s now", tostring(self)); self:setflags(false, false); |