# HG changeset patch # User Kim Alvefur # Date 1471879354 -7200 # Node ID d8126298c729c2bdd6e8fe2876377a95bc506721 # Parent e56343d502933acc899b73afdda2f09837b81ac7 net.server_epoll: Let :init handle setup for onconnect handling diff -r e56343d50293 -r d8126298c729 net/server_epoll.lua --- 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);