diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2024-04-28 00:06:26 +1200 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2024-04-28 00:06:26 +1200 |
commit | c8377eaf8de82d2962d953a71e706d057da7871b (patch) | |
tree | d62386e829b5cd4718836d50e7bf3db44a5577b8 | |
parent | c99d24cee96b775f1d899d70ee49a16d810b2ebb (diff) | |
download | ruby-openssl-c8377eaf8de82d2962d953a71e706d057da7871b.tar.gz |
More documentation.
-rw-r--r-- | lib/openssl/ssl.rb | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/openssl/ssl.rb b/lib/openssl/ssl.rb index 0568276a..787d6e01 100644 --- a/lib/openssl/ssl.rb +++ b/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 |