projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c522d56
)
server_select: Forward the actual TLS handshake error message
author
Kim Alvefur
<zash@zash.se>
Sun, 3 Jan 2016 16:19:14 +0000
(17:19 +0100)
committer
Kim Alvefur
<zash@zash.se>
Sun, 3 Jan 2016 16:19:14 +0000
(17:19 +0100)
net/server_select.lua
patch
|
blob
|
history
diff --git
a/net/server_select.lua
b/net/server_select.lua
index 87921df4badc579d21fa70b83cd92af02ac6f414..d9826c02e3188003963c1c87b5f7616a2f344368 100644
(file)
--- 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
)