Commit 477bcd9a authored by Dahoon Kim's avatar Dahoon Kim

Fix gevent._ssl3.SSLContext.read to return empty bytes if SSLError occurs.

parent a4f5ae39
......@@ -173,7 +173,7 @@ class SSLSocket(socket):
except SSLError as ex:
if ex.args[0] == SSL_ERROR_EOF and self.suppress_ragged_eofs:
if buffer is None:
return ''
return b''
else:
return 0
else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment