Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
OpenSSL::SSL::SSLSocket#sysclose
() -> nil
ssl.sysclose => nil
ext/openssl/lib/openssl/ssl.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/ext/openssl/lib/openssl/ssl.rb, line 376
def sysclose
return if closed?
stop
io.close if sync_close
end
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
#string_new_capacity
#sysread
#stop
#sysread_nonblock
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0