aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2024-04-28 18:09:49 +1200
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2024-04-28 18:09:49 +1200
commit0697f2f8b4a8d812def1c34b4d6e2b03811026a5 (patch)
tree09728396421b23d9cfb240e53410bad652148045
parentc8377eaf8de82d2962d953a71e706d057da7871b (diff)
downloadruby-openssl-0697f2f8b4a8d812def1c34b4d6e2b03811026a5.tar.gz
Further clarification of documentation.
-rw-r--r--lib/openssl/ssl.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/openssl/ssl.rb b/lib/openssl/ssl.rb
index 787d6e01..d28bf1a3 100644
--- a/lib/openssl/ssl.rb
+++ b/lib/openssl/ssl.rb
@@ -469,15 +469,15 @@ ssbzSibBsu/6iGtCOGEoXJf//////////wIBAg==
# 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.
- #
+ # - On receipt of a 'close_notify' alert, responds with a 'close_notify'
+ # alert of its own and close down the connection immediately,
+ # discarding any pending writes.
+ #
# 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.