From 0697f2f8b4a8d812def1c34b4d6e2b03811026a5 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Sun, 28 Apr 2024 18:09:49 +1200 Subject: [PATCH] Further clarification of documentation. --- lib/openssl/ssl.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/openssl/ssl.rb b/lib/openssl/ssl.rb index 787d6e01f..d28bf1a37 100644 --- a/lib/openssl/ssl.rb +++ b/lib/openssl/ssl.rb @@ -469,15 +469,15 @@ def close_read # 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.