Skip to content

ssl: do not rescue Errno::EAGAIN - #1128

Merged
rhenium merged 1 commit into
ruby:masterfrom
rhenium:ky/ssl-buffering-rescue-eagain
Oct 13, 2026
Merged

rhenium merged 1 commit into
ruby:masterfrom
rhenium:ky/ssl-buffering-rescue-eagain

Conversation

@rhenium

@rhenium rhenium commented Oct 13, 2026

Copy link
Copy Markdown
Member

SSLSocket#sysread and #syswrite never raise Errno::EAGAIN.

It appears to me that commit ruby/ruby@a9fb0817a154 (should wait for that the underlying IO become readable or writable if the error was SSL_ERROR_WANT_READ or SSL_ERROR_WANT_WRITE, 2005-03-05) made this rescue unnecessary.

SSLSocket#sysread and #syswrite never raise Errno::EAGAIN.

It appears to me that commit ruby/ruby@a9fb0817a154 (should wait for
that the underlying IO become readable or writable if the error was
SSL_ERROR_WANT_READ or SSL_ERROR_WANT_WRITE, 2005-03-05) made this
rescue unnecessary.
@rhenium
rhenium merged commit 6c323d8 into ruby:master Oct 13, 2026
47 of 48 checks passed
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