Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

OpenSSL::SSL::SSLSocket#sysclose

ssl.sysclose => nil

Sends “close notify” to the peer and tries to shut down the SSL connection gracefully.

If sync_close is set to true, the underlying IO is also closed.

See also #stop #sysread #state #sysread_nonblock also in 4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0