Skip to content

Use IO#close_write instead of #shutdown - #87

Open
rhenium wants to merge 1 commit into
ruby:masterfrom
rhenium:ky/use-io-close-write
Open

rhenium wants to merge 1 commit into
ruby:masterfrom
rhenium:ky/use-io-close-write

Conversation

@rhenium

@rhenium rhenium commented Nov 11, 2026

Copy link
Copy Markdown
Member

Prefer IO#close_write for simplicity. OpenSSL::SSL::SSLSocket also provides it in ruby/openssl >= 3.3 (default gem in Ruby >= 3.4).

This avoids using the private OpenSSL::SSL::SSLSocket#stop method when #close_write is available.

Prefer IO#close_write for simplicity. OpenSSL::SSL::SSLSocket also
provides it in ruby/openssl >= 3.3 (default gem in Ruby >= 3.4).

This avoids using the private OpenSSL::SSL::SSLSocket#stop method
when #close_write is available.

This branch has not been deployed

No deployments
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