diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-07-04 20:59:32 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-07-09 16:17:36 +0900 |
commit | f1aefdcb9e9a591fbca84e41f3121e0cdf93f431 (patch) | |
tree | 5acf5ed3e5a948c733b7185c08a2e3348e6a9509 /lib | |
parent | 08e1881f5663ceb3527c8953f353dfaef42062fb (diff) | |
download | ruby-openssl-f1aefdcb9e9a591fbca84e41f3121e0cdf93f431.tar.gz |
Document OpenSSL::SSL::SSLSocket#sync_closetopic/doc-ssl-sync-close
Add rdoc for OpenSSL::SSL::SSLSocket#sync_close, and mention it in the
example code in the rdoc for OpenSSL namespace. [GH ruby/openssl#11]
Diffstat (limited to 'lib')
-rw-r--r-- | lib/openssl/ssl.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/openssl/ssl.rb b/lib/openssl/ssl.rb index 00c32753..9ffb35b8 100644 --- a/lib/openssl/ssl.rb +++ b/lib/openssl/ssl.rb @@ -252,7 +252,11 @@ module OpenSSL end attr_reader :io, :context + + # Whether to close the underlying socket as well, when the SSL/TLS + # connection is shut down. This defaults to +false+. attr_accessor :sync_close + alias :to_io :io # call-seq: |