Skip to content

Commit

Permalink
green.ssl: Set suppress_ragged_eofs default based on SSLSocket defaults
Browse files Browse the repository at this point in the history
Error: `EOF occurred in violation of protocol (_ssl.c:2570)` in some HTTPS `connection: close` scenario.

This is a result of suppress_ragged_eofs defaulting to True in SSLSocket, but defaulting to None in GreenSSLSocket when monkey_patched. This only occurs in Python 3.7+.

#695
  • Loading branch information
reese-allison committed Apr 12, 2021
1 parent 71b76bf commit 377b4fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eventlet/green/ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def __new__(cls, sock=None, keyfile=None, certfile=None,
sock=sock.fd,
server_side=server_side,
do_handshake_on_connect=False,
suppress_ragged_eofs=kw.get('suppress_ragged_eofs'),
suppress_ragged_eofs=kw.get('suppress_ragged_eofs', True),
server_hostname=kw.get('server_hostname'),
context=context,
session=kw.get('session'),
Expand Down

0 comments on commit 377b4fb

Please sign in to comment.