aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);