Fixed a bug in compatibility code

This commit is contained in:
junglecow 2006-11-13 14:44:17 +00:00
parent c5ffc7bf5d
commit 9e3e14dd78
1 changed files with 1 additions and 2 deletions

View File

@ -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):