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 | 81dcc80c9be0cb6d9535e05725473992679b28a3 (patch) | |
tree | 980fcf98cc8efb477ed098ad4a52cd49ec0f9064 /net | |
parent | 7b734a63a00edba3fe499c6fedcf045dd27baf1e (diff) | |
download | prosody-81dcc80c9be0cb6d9535e05725473992679b28a3.tar.gz prosody-81dcc80c9be0cb6d9535e05725473992679b28a3.zip |
net.server_epoll: Make sure wantwrite is set when starting TLS
Diffstat (limited to 'net')
-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); |