Software /
code /
prosody
Diff
net/server_epoll.lua @ 7627:d8126298c729
net.server_epoll: Let :init handle setup for onconnect handling
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 22 Aug 2016 17:22:34 +0200 |
parent | 7626:e56343d50293 |
child | 7628:7f2159eac697 |
line wrap: on
line diff
--- a/net/server_epoll.lua Mon Aug 22 17:20:54 2016 +0200 +++ b/net/server_epoll.lua Mon Aug 22 17:22:34 2016 +0200 @@ -418,9 +418,7 @@ self._tls = true; self.starttls = false; if old == false then - self.onwriteable = interface.onconnect; - self:setflags(false, true); - self:setwritetimeout(); + self:init(); else self:setflags(true, true); self:on("status", "ssl-handshake-complete"); @@ -448,7 +446,6 @@ created = gettime(); listeners = listeners; _pattern = pattern or server._pattern; - onwriteable = interface.onconnect; writebuffer = {}; tls = tls; }, interface_mt);