# HG changeset patch # User Matthew Wild # Date 1275510824 -3600 # Node ID 5aca2f01c0f9a83a5aaf2b9d83ec29f622f0e220 # Parent f2d1079a758d02d7a5ce1ddc2512b936c70ff1f2 net.server_event: Also return the socket from wrapclient, to maintain compatibility with server_select (thanks uhoreg) diff -r f2d1079a758d -r 5aca2f01c0f9 net/server_event.lua --- 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