Changeset

4348:5b240c6b5334

net.server_select: Update error logging logic during SSL handshake (now shows correctly when a handshake exceeded max. allowed iterations)
author Matthew Wild <mwild1@gmail.com>
date Sat, 20 Aug 2011 15:04:17 -0400
parents 4347:4b5290dd4e58
children 4349:16fd8061964e
files net/server_select.lua
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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