net.server_select: Update error logging logic during SSL handshake (now shows correctly when a handshake exceeded max. allowed iterations)

This commit is contained in:
Matthew Wild 2011-08-20 15:04:17 -04:00
parent 7915c70e13
commit b43b86615b

View file

@ -535,13 +535,13 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
_readlistlen = addsocket(_readlist, client, _readlistlen) _readlistlen = addsocket(_readlist, client, _readlistlen)
read = true read = true
else else
out_put( "server.lua: ssl handshake error: ", tostring(err) )
break; break;
end end
--coroutine_yield( handler, nil, err ) -- handshake not finished err = nil;
coroutine_yield( ) coroutine_yield( ) -- handshake not finished
end end
end end
out_put( "server.lua: ssl handshake error: ", tostring(err or "handshake too long") )
disconnect( handler, "ssl handshake failed" ) disconnect( handler, "ssl handshake failed" )
_ = handler and handler:close( true ) -- forced disconnect _ = handler and handler:close( true ) -- forced disconnect
return false -- handshake failed return false -- handshake failed