Changeset

3149:5aca2f01c0f9

net.server_event: Also return the socket from wrapclient, to maintain compatibility with server_select (thanks uhoreg)
author Matthew Wild <mwild1@gmail.com>
date Wed, 02 Jun 2010 21:33:44 +0100
parents 3125:f2d1079a758d
children 3150:0005df92d379 3151:6eca858feb04
files net/server_event.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_event.lua	Wed May 26 13:38:00 2010 +0100
+++ b/net/server_event.lua	Wed Jun 02 21:33:44 2010 +0100
@@ -750,7 +750,7 @@
 	function wrapclient( client, ip, port, listeners, pattern, sslctx, startssl )
 		local interface = handleclient( client, ip, port, nil, pattern, listeners, sslctx )
 		interface:_start_session()
-		return interface
+		return interface, client
 		--function handleclient( client, ip, port, server, pattern, listener, _, sslctx )  -- creates an client interface
 	end