diff options
author | Samuel Williams <[email protected]> | 2024-04-28 00:06:26 +1200 |
---|---|---|
committer | git <[email protected]> | 2024-04-30 14:51:59 +0000 |
commit | f1afae2459e139430859f57b8351d180e9ef5d9f (patch) | |
tree | 37a4b5c746da43a6946ec2e311a452db467507fc /ext | |
parent | 1699772ac4e62d783aab6e820f978c04a215a612 (diff) |
[ruby/openssl] More documentation.
https://github.com/ruby/openssl/commit/c8377eaf8d
Diffstat (limited to 'ext')
-rw-r--r-- | ext/openssl/lib/openssl/ssl.rb | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/ext/openssl/lib/openssl/ssl.rb b/ext/openssl/lib/openssl/ssl.rb index 0568276a1e..787d6e01f4 100644 --- a/ext/openssl/lib/openssl/ssl.rb +++ b/ext/openssl/lib/openssl/ssl.rb @@ -460,12 +460,27 @@ ssbzSibBsu/6iGtCOGEoXJf//////////wIBAg== end # Close the stream for reading. + # This method is ignored by OpenSSL as there is no reasonable way to + # implement it, but exists for compatibility with IO. def close_read # Unsupported and ignored. # Just don't read any more. end - # Close the stream for writing. + # Closes the stream for writing. The behavior of this method depends on + # the version of OpenSSL and the TLS protocol in use. + # + # In TLS 1.3 and later: + # - Sends a 'close_notify' alert to the peer. + # - Does not wait for the peer's 'close_notify' alert in response. + # + # In TLS 1.2 and earlier: + # - Sends a 'close_notify' alert to the peer. + # - Waits for the peer's 'close_notify' alert in response. + # + # Therefore, on TLS 1.2, this method will cause the connection to be + # completely shut down. On TLS 1.3, the connection will remain open for + # reading only. def close_write stop end |