Software /
code /
prosody
Comparison
net/server_select.lua @ 4348:5b240c6b5334
net.server_select: Update error logging logic during SSL handshake (now shows correctly when a handshake exceeded max. allowed iterations)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 20 Aug 2011 15:04:17 -0400 |
parent | 4347:4b5290dd4e58 |
child | 4349:16fd8061964e |
comparison
equal
deleted
inserted
replaced
4347:4b5290dd4e58 | 4348:5b240c6b5334 |
---|---|
533 wrote = true | 533 wrote = true |
534 elseif err == "wantread" then | 534 elseif err == "wantread" then |
535 _readlistlen = addsocket(_readlist, client, _readlistlen) | 535 _readlistlen = addsocket(_readlist, client, _readlistlen) |
536 read = true | 536 read = true |
537 else | 537 else |
538 out_put( "server.lua: ssl handshake error: ", tostring(err) ) | |
539 break; | 538 break; |
540 end | 539 end |
541 --coroutine_yield( handler, nil, err ) -- handshake not finished | 540 err = nil; |
542 coroutine_yield( ) | 541 coroutine_yield( ) -- handshake not finished |
543 end | 542 end |
544 end | 543 end |
544 out_put( "server.lua: ssl handshake error: ", tostring(err or "handshake too long") ) | |
545 disconnect( handler, "ssl handshake failed" ) | 545 disconnect( handler, "ssl handshake failed" ) |
546 _ = handler and handler:close( true ) -- forced disconnect | 546 _ = handler and handler:close( true ) -- forced disconnect |
547 return false -- handshake failed | 547 return false -- handshake failed |
548 end | 548 end |
549 ) | 549 ) |