From 34556c69639eca2b84eb390d8fd380cefba6ae36 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 3 Jan 2016 17:19:14 +0100 Subject: server_select: Forward the actual TLS handshake error message --- net/server_select.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'net') diff --git a/net/server_select.lua b/net/server_select.lua index 87921df4..d9826c02 100644 --- a/net/server_select.lua +++ b/net/server_select.lua @@ -589,8 +589,9 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport 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 ) -- cgit v1.2.3