# HG changeset patch # User Kim Alvefur # Date 1451837954 -3600 # Node ID 14bc5593b97e704810fb69ff4fd00020775829c3 # Parent aff786e7b4ceea89be9fdf3fa57119541f007815 server_select: Forward the actual TLS handshake error message diff -r aff786e7b4ce -r 14bc5593b97e net/server_select.lua --- a/net/server_select.lua Sat Jan 02 20:42:20 2016 +0000 +++ b/net/server_select.lua Sun Jan 03 17:19:14 2016 +0100 @@ -589,8 +589,9 @@ coroutine_yield( ) -- handshake not finished end end - out_put( "server.lua: ssl handshake error: ", tostring(err or "handshake too long") ) - _ = handler and handler:force_close("ssl handshake failed") + err = "ssl handshake error: " .. ( err or "handshake too long" ); + out_put( "server.lua: ", err ); + _ = handler and handler:force_close(err) return false, err -- handshake failed end )