diff options
author | Kim Alvefur <zash@zash.se> | 2016-01-03 17:19:14 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-01-03 17:19:14 +0100 |
commit | 6a9bce5daef12f552cc33927fe3ebbd7a51efe69 (patch) | |
tree | 8a852044a34167f083973a7c61da5c3a3c92ee17 /net | |
parent | e5691fed7972bf6c0d4e0e494f79850322b794c4 (diff) | |
download | prosody-6a9bce5daef12f552cc33927fe3ebbd7a51efe69.tar.gz prosody-6a9bce5daef12f552cc33927fe3ebbd7a51efe69.zip |
server_select: Forward the actual TLS handshake error message
Diffstat (limited to 'net')
-rw-r--r-- | net/server_select.lua | 5 |
1 files changed, 3 insertions, 2 deletions
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 ) |