Diff

net/server_event.lua @ 4905:274ef78aa173

net.server_event: Assume wrapclient() is taking a new connection, and call onconnect when appropriate (to match server_select)
author Matthew Wild <mwild1@gmail.com>
date Thu, 24 May 2012 02:55:37 +0100
parent 4676:1ce2ff9ec313
child 4907:32b638a8da5b
line wrap: on
line diff
--- a/net/server_event.lua	Wed May 23 02:20:32 2012 +0100
+++ b/net/server_event.lua	Thu May 24 02:55:37 2012 +0100
@@ -744,7 +744,7 @@
 do
 	function wrapclient( client, ip, port, listeners, pattern, sslctx, startssl )
 		local interface = handleclient( client, ip, port, nil, pattern, listeners, sslctx )
-		interface:_start_session()
+		interface:_start_connection(sslctx)
 		return interface, client
 		--function handleclient( client, ip, port, server, pattern, listener, _, sslctx )  -- creates an client interface
 	end