# HG changeset patch # User Matthew Wild # Date 1313867057 14400 # Node ID 5b240c6b533406765ba89b0a895d40e25511fdf0 # Parent 4b5290dd4e5841313917c3b77b1a2ecc86554792 net.server_select: Update error logging logic during SSL handshake (now shows correctly when a handshake exceeded max. allowed iterations) diff -r 4b5290dd4e58 -r 5b240c6b5334 net/server_select.lua --- a/net/server_select.lua Sat Aug 20 15:03:16 2011 -0400 +++ b/net/server_select.lua Sat Aug 20 15:04:17 2011 -0400 @@ -535,13 +535,13 @@ _readlistlen = addsocket(_readlist, client, _readlistlen) read = true else - out_put( "server.lua: ssl handshake error: ", tostring(err) ) break; end - --coroutine_yield( handler, nil, err ) -- handshake not finished - coroutine_yield( ) + err = nil; + coroutine_yield( ) -- handshake not finished end end + out_put( "server.lua: ssl handshake error: ", tostring(err or "handshake too long") ) disconnect( handler, "ssl handshake failed" ) _ = handler and handler:close( true ) -- forced disconnect return false -- handshake failed