aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_epoll.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-08-22 17:22:34 +0200
committerKim Alvefur <zash@zash.se>2016-08-22 17:22:34 +0200
commitc304618e0e49cea262bff8056fdf218a26e904b0 (patch)
treeeaf085490a98f86e400718009400be151b82ed5c /net/server_epoll.lua
parent71b2c42271c57a45d77a77a0cda536ce49509641 (diff)
downloadprosody-c304618e0e49cea262bff8056fdf218a26e904b0.tar.gz
prosody-c304618e0e49cea262bff8056fdf218a26e904b0.zip
net.server_epoll: Let :init handle setup for onconnect handling
Diffstat (limited to 'net/server_epoll.lua')
-rw-r--r--net/server_epoll.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index 427f470a..c12e1d3d 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -418,9 +418,7 @@ function interface:tlshandskake()
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 @@ local function wrapsocket(client, server, pattern, listeners, tls) -- luasocket
created = gettime();
listeners = listeners;
_pattern = pattern or server._pattern;
- onwriteable = interface.onconnect;
writebuffer = {};
tls = tls;
}, interface_mt);