Another place that should handle SSLWantReadError

This commit is contained in:
Kovid Goyal 2017-06-23 12:48:11 +05:30
parent 96bc0e6a6f
commit 321ebd2b24
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -212,6 +212,8 @@ class Connection(object): # {{{
self.ready = False
return b''
return data
except ssl.SSLWantReadError:
return b''
except socket.error as e:
if e.errno in socket_errors_nonblocking or e.errno in socket_errors_eintr:
return b''