aboutsummaryrefslogtreecommitdiffstats
path: root/net
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
commitcd87e3b71948c1d44720c597d2ff652bc5c6c724 (patch)
tree980fcf98cc8efb477ed098ad4a52cd49ec0f9064 /net
parent1d132becbc04010a2a7d25bef5097be25c036220 (diff)
downloadprosody-cd87e3b71948c1d44720c597d2ff652bc5c6c724.tar.gz
prosody-cd87e3b71948c1d44720c597d2ff652bc5c6c724.zip
net.server_epoll: Make sure wantwrite is set when starting TLS
Diffstat (limited to 'net')
-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);