Software /
code /
prosody
Diff
net/server_epoll.lua @ 7603:4e2b019ff176
net.server_epoll: Make sure wantwrite is set when starting TLS
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 18 Aug 2016 17:17:16 +0200 |
parent | 7602:a4d5eec36a17 |
child | 7604:36408ef6c8c9 |
line wrap: on
line diff
--- a/net/server_epoll.lua Thu Aug 18 17:16:21 2016 +0200 +++ b/net/server_epoll.lua Thu Aug 18 17:17:16 2016 +0200 @@ -378,6 +378,7 @@ 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);