# HG changeset patch # User Matthew Wild # Date 1366242063 -3600 # Node ID 5d0cc5de5c51c0d77e6c5e8863fef11b84c6df5e # Parent 55faa2fd5549ca0cb8d67f6379b17ed75fbf3944 net.server_select: Don't call onconnect twice for SSL connections diff -r 55faa2fd5549 -r 5d0cc5de5c51 net/server_select.lua --- a/net/server_select.lua Thu Apr 18 00:40:09 2013 +0100 +++ b/net/server_select.lua Thu Apr 18 00:41:03 2013 +0100 @@ -243,7 +243,7 @@ end connections = connections + 1 out_put( "server.lua: accepted new client connection from ", tostring(ip), ":", tostring(clientport), " to ", tostring(serverport)) - if dispatch then + if dispatch and not sslctx then -- SSL connections will notify onconnect when handshake completes return dispatch( handler ); end return;