Repository navigation
Map ssl.SSLError to ReadError and WriteError in AnyIOStream - #1396
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Merging this PR will not alter performance
Comparing Footnotes
|
There was a problem hiding this comment.
All reported issues were addressed across 2 files
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
Add
ssl.SSLErrorto the exception mappings inAnyIOStream.read()(ReadError) andAnyIOStream.write()(WriteError).anyio.streams.tls.TLSStreamonly translatesSSLSyscallErrorandSSLEOFError, re-raising otherssl.SSLErrors (such as mid-stream record layer / bad MAC alerts) raw.AnyIOStream.start_tls()already mappedssl.SSLErrortoConnectError, and bothSyncStream(viaOSError) andTrioStream(viatrio.SSLStreamwrappingssl.SSLErrorinBrokenResourceError) already mapped mid-stream TLS errors toReadError/WriteError, leavingAnyIOStream.read()andwrite()as the only paths leaking rawssl.SSLError.Addresses the mid-stream
ssl.SSLErrorleak reported in #854.Session: pi --session 01a24058-cc48-76fc-a013-84da8cb42ccf