aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_epoll.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-08-18 17:17:16 +0200
committerKim Alvefur <zash@zash.se>2016-08-18 17:17:16 +0200
commit81dcc80c9be0cb6d9535e05725473992679b28a3 (patch)
tree980fcf98cc8efb477ed098ad4a52cd49ec0f9064 /net/server_epoll.lua
parent7b734a63a00edba3fe499c6fedcf045dd27baf1e (diff)
downloadprosody-81dcc80c9be0cb6d9535e05725473992679b28a3.tar.gz
prosody-81dcc80c9be0cb6d9535e05725473992679b28a3.zip
net.server_epoll: Make sure wantwrite is set when starting TLS
Diffstat (limited to 'net/server_epoll.lua')
-rw-r--r--net/server_epoll.lua1
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);