Skip to content

ssl: expose SSL_shutdown() - #1127

Open
rhenium wants to merge 1 commit into
ruby:masterfrom
rhenium:ky/ssl-shutdown
Open

rhenium wants to merge 1 commit into
ruby:masterfrom
rhenium:ky/ssl-shutdown

Conversation

@rhenium

@rhenium rhenium commented Oct 13, 2026

Copy link
Copy Markdown
Member

Expose SSL_shutdown() as SSLSocket#ssl_shutdown so that Ruby programs can control closure of connection more precisely.

Update SSLSocket#sysclose and #close_write to use this method. They currently rescue SystemCallError and SSLError to preserve the existing behavior, though this should probably be reconsidered separately.

Closes #610

Expose SSL_shutdown() as SSLSocket#ssl_shutdown so that Ruby programs
can control closure of connection more precisely.

Update SSLSocket#sysclose and #close_write to use this method. They
currently rescue SystemCallError and SSLError to preserve the existing
behavior, though this should probably be reconsidered separately.

Closes ruby#610

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.

Non-blocking socket not handled correctly.

1 participant