Skip to content

do not wrap connection errors - #409

Open
kares wants to merge 2 commits into
masterfrom
do-not-wrap-connection-errors
Open

kares wants to merge 2 commits into
masterfrom
do-not-wrap-connection-errors

Conversation

@kares

@kares kares commented Dec 5, 2026

Copy link
Copy Markdown
Member

No description provided.

kares added 2 commits December 4, 2026 19:32
connect/accept wrapped every IOException as SSLError, while MRI raises the errno (e.g. Errno::ECONNRESET) for socket failures during SSL_connect/SSL_accept
non-SSL IOExceptions now go through newIOErrorFromException, as sysread/syswrite already do
connection resets now raise Errno::ECONNRESET (as in MRI),
only an EOF mid-handshake still needs the SSLError rescue
@kares kares added this to the 0.20.0 milestone Dec 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant