Diff

net/server_epoll.lua @ 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
parent 9666:270216874740
child 9696:ed0917381b4d
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