Commit cca18e31 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

prevent TB loop and 100% CPU on connection cut

parent 9dcd1fa3
Pipeline #686 passed with stages
in 21 seconds
......@@ -609,13 +609,13 @@ class NonBlockingTCP(NonBlockingTransport, IdleObject):
try:
# get as many bites, as possible, but not more than RECV_BUFSIZE
received = self._recv(RECV_BUFSIZE)
except socket.error as e:
log.info("_do_receive: got %s:" % received, exc_info=True)
except tls_nb.SSLWrapper.Error as e:
log.info("_do_receive, caught SSL error, got %s:" % received,
exc_info=True)
errnum, errstr = e.errno,\
decode_py2(e.strerror, locale.getpreferredencoding())
except socket.error as e:
log.info("_do_receive: got %s:" % received, exc_info=True)
if received == '':
errstr = 'zero bytes on recv'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment