aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_epoll.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-12-08 21:17:39 +0100
committerKim Alvefur <zash@zash.se>2018-12-08 21:17:39 +0100
commita575159cb0172220dd3657ed8a3eff5ca22d9532 (patch)
treeb64aea33b44204aa6fbab98e605e4fcee6bcb8a6 /net/server_epoll.lua
parent109ee6261982614ea367de4b2716b0ea6f375168 (diff)
downloadprosody-a575159cb0172220dd3657ed8a3eff5ca22d9532.tar.gz
prosody-a575159cb0172220dd3657ed8a3eff5ca22d9532.zip
net.server_epoll: Call onconnect right after accept()ing a new client
Diffstat (limited to 'net/server_epoll.lua')
-rw-r--r--net/server_epoll.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index 13c8315a..3088b55b 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -577,6 +577,8 @@ function interface:onacceptable()
client:init();
if self.tls_direct then
client:starttls(self.tls_ctx);
+ else
+ client:onconnect();
end
end