]> git.ipfire.org Git - thirdparty/tornado.git/commit
Improve error handling during ssl handshake.
authorBen Darnell <ben@bendarnell.com>
Fri, 25 Jul 2014 03:41:49 +0000 (23:41 -0400)
committerBen Darnell <ben@bendarnell.com>
Fri, 25 Jul 2014 03:41:49 +0000 (23:41 -0400)
commit7b62519b0cc4cbcf64eea6cf82d218039c8d9804
treeac62dd366a3deb7b97cf926b7eee345b9f38c14b
parent20ef21d2228ff3b696c9588d85a42d26d658bfd0
Improve error handling during ssl handshake.

Previously if do_handshake raised an error not in CONNRESET,
the socket would not be closed properly and the server would start
using 100% of the cpu.

Also handle EBADF errors from do_handshake without logging since
they can be generated by some modes of nmap scans.
tornado/iostream.py