python 3.10: SSLObject does not raise SSLEOFError on OpenSSL 3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python3.10 (Ubuntu) |
Triaged
|
High
|
Unassigned | ||
Jammy |
Triaged
|
High
|
Unassigned |
Bug Description
From https:/
--------
PR bpo-25309 (#25309) changed OpenSSL behavior so that it ignores unexpected EOFs by default. This was detected by the test suites of both trio and AnyIO when running on OpenSSL 3.
We worked around the problem by explicitly unsetting the SSL_OP_
The remedy in the standard library would be twofold:
Revert the change of enabling SSL_OP_
Handle the condition properly so that SSLEOFError is raised instead of the generic SSLError
As SSLSockets ignore SSLEOFError by default, this fix should work fine for those too.
--------
There isn't any upstream PR associated with this AFAICT.
tags: | added: rls-jj-incoming |
tags: | added: fr-2314 |
tags: | removed: rls-jj-incoming |
Changed in python3.10 (Ubuntu Jammy): | |
importance: | Undecided → High |
Changed in python3.10 (Ubuntu): | |
status: | New → Confirmed |
Changed in python3.10 (Ubuntu Jammy): | |
status: | New → Confirmed |
tags: | removed: fr-2314 |
Changed in python3.10 (Ubuntu): | |
status: | Confirmed → Triaged |
Changed in python3.10 (Ubuntu Jammy): | |
status: | Confirmed → Triaged |