Diff

net/server_select.lua @ 10474:175b72700d79

net.server_select: Remove prefix added to TLS handshaker errors For consistency. None of the other implementations do this.
author Kim Alvefur <zash@zash.se>
date Sun, 01 Dec 2019 01:21:58 +0100
parent 10234:d4390c427a66
child 10851:6cf16abd0976
line wrap: on
line diff
--- a/net/server_select.lua	Sun Dec 01 01:20:34 2019 +0100
+++ b/net/server_select.lua	Sun Dec 01 01:21:58 2019 +0100
@@ -611,7 +611,7 @@
 						coroutine_yield( ) -- handshake not finished
 					end
 				end
-				err = "ssl handshake error: " .. ( err or "handshake too long" );
+				err = ( err or "handshake too long" );
 				out_put( "server.lua: ", err );
 				_ = handler and handler:force_close(err)
 				return false, err -- handshake failed