Fixed a bug in compatibility code
This commit is contained in:
parent
c5ffc7bf5d
commit
9e3e14dd78
|
@ -157,8 +157,7 @@ class StdlibSSLWrapper(SSLWrapper):
|
||||||
traceback.print_stack()
|
traceback.print_stack()
|
||||||
if e.args[0] not in (socket.SSL_ERROR_WANT_READ, socket.SSL_ERROR_WANT_WRITE):
|
if e.args[0] not in (socket.SSL_ERROR_WANT_READ, socket.SSL_ERROR_WANT_WRITE):
|
||||||
raise
|
raise
|
||||||
if retval is None: return ''
|
|
||||||
if retval == '': raise SSLWrapper.SocketShutdown('Connection Closed')
|
|
||||||
return retval
|
return retval
|
||||||
|
|
||||||
def send(this, data, flags=None):
|
def send(this, data, flags=None):
|
||||||
|
|
Loading…
Reference in New Issue