Method: OpenSSL::SSL::SSLSocket#sysclose
- Defined in:
- lib/openssl/ssl.rb
#sysclose ⇒ Object
call-seq:
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.
384 385 386 387 388 |
# File 'lib/openssl/ssl.rb', line 384 def sysclose return if closed? stop io.close if sync_close end |