Changeset

9695:5ec4eaf76de8

net.server_epoll: Call onconnect right after accept()ing a new client
author Kim Alvefur <zash@zash.se>
date Sat, 08 Dec 2018 21:17:39 +0100
parents 9694:faebfd3ad2a1
children 9696:ed0917381b4d
files net/server_epoll.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_epoll.lua	Sat Dec 08 17:13:39 2018 +0100
+++ b/net/server_epoll.lua	Sat Dec 08 21:17:39 2018 +0100
@@ -577,6 +577,8 @@
 	client:init();
 	if self.tls_direct then
 		client:starttls(self.tls_ctx);
+	else
+		client:onconnect();
 	end
 end