Software /
code /
prosody
Changeset
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 |
parents | 7626:e56343d50293 |
children | 7628:7f2159eac697 |
files | net/server_epoll.lua |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
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);