aboutsummaryrefslogtreecommitdiffstats
path: root/net
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
commit9e5719aa47b6dce25c01a30077e6d778b4799d3a (patch)
treeeaf085490a98f86e400718009400be151b82ed5c /net
parent6d88b49540cf7d551fb6ef58650e4b86b3106640 (diff)
downloadprosody-9e5719aa47b6dce25c01a30077e6d778b4799d3a.tar.gz
prosody-9e5719aa47b6dce25c01a30077e6d778b4799d3a.zip
net.server_epoll: Let :init handle setup for onconnect handling
Diffstat (limited to 'net')
-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);