Comparison

net/server_select.lua @ 7043:14bc5593b97e

server_select: Forward the actual TLS handshake error message
author Kim Alvefur <zash@zash.se>
date Sun, 03 Jan 2016 17:19:14 +0100
parent 7041:aff786e7b4ce
child 7046:6b4232125f32
child 7066:7d5a1fb9bf9e
comparison
equal deleted inserted replaced
7041:aff786e7b4ce 7043:14bc5593b97e
587 end 587 end
588 err = nil; 588 err = nil;
589 coroutine_yield( ) -- handshake not finished 589 coroutine_yield( ) -- handshake not finished
590 end 590 end
591 end 591 end
592 out_put( "server.lua: ssl handshake error: ", tostring(err or "handshake too long") ) 592 err = "ssl handshake error: " .. ( err or "handshake too long" );
593 _ = handler and handler:force_close("ssl handshake failed") 593 out_put( "server.lua: ", err );
594 _ = handler and handler:force_close(err)
594 return false, err -- handshake failed 595 return false, err -- handshake failed
595 end 596 end
596 ) 597 )
597 end 598 end
598 if has_luasec then 599 if has_luasec then