Skip to content
Snippets Groups Projects
Commit 9e3e14dd authored by junglecow's avatar junglecow
Browse files

Fixed a bug in compatibility code

parent c5ffc7bf
No related branches found
No related tags found
No related merge requests found
......@@ -157,8 +157,7 @@ class StdlibSSLWrapper(SSLWrapper):
traceback.print_stack()
if e.args[0] not in (socket.SSL_ERROR_WANT_READ, socket.SSL_ERROR_WANT_WRITE):
raise
if retval is None: return ''
if retval == '': raise SSLWrapper.SocketShutdown('Connection Closed')
return retval
def send(this, data, flags=None):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment