Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
10473:b2dd1219a321 | 10474:175b72700d79 |
---|---|
609 end | 609 end |
610 err = nil; | 610 err = nil; |
611 coroutine_yield( ) -- handshake not finished | 611 coroutine_yield( ) -- handshake not finished |
612 end | 612 end |
613 end | 613 end |
614 err = "ssl handshake error: " .. ( err or "handshake too long" ); | 614 err = ( err or "handshake too long" ); |
615 out_put( "server.lua: ", err ); | 615 out_put( "server.lua: ", err ); |
616 _ = handler and handler:force_close(err) | 616 _ = handler and handler:force_close(err) |
617 return false, err -- handshake failed | 617 return false, err -- handshake failed |
618 end | 618 end |
619 ) | 619 ) |