mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Another place that should handle SSLWantReadError
This commit is contained in:
parent
96bc0e6a6f
commit
321ebd2b24
@ -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''
|
||||
|
Loading…
x
Reference in New Issue
Block a user