Skip to content

Commit 0697f2f

Browse files
committed
Further clarification of documentation.
1 parent c8377ea commit 0697f2f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/openssl/ssl.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -469,15 +469,15 @@ def close_read
469469

470470
# Closes the stream for writing. The behavior of this method depends on
471471
# the version of OpenSSL and the TLS protocol in use.
472-
#
473-
# In TLS 1.3 and later:
472+
#
474473
# - Sends a 'close_notify' alert to the peer.
475474
# - Does not wait for the peer's 'close_notify' alert in response.
476-
#
475+
#
477476
# In TLS 1.2 and earlier:
478-
# - Sends a 'close_notify' alert to the peer.
479-
# - Waits for the peer's 'close_notify' alert in response.
480-
#
477+
# - On receipt of a 'close_notify' alert, responds with a 'close_notify'
478+
# alert of its own and close down the connection immediately,
479+
# discarding any pending writes.
480+
#
481481
# Therefore, on TLS 1.2, this method will cause the connection to be
482482
# completely shut down. On TLS 1.3, the connection will remain open for
483483
# reading only.

0 commit comments

Comments
 (0)