Skip to content

Commit

Permalink
Further clarification of documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Apr 28, 2024
1 parent c8377ea commit 0697f2f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/openssl/ssl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0697f2f

Please sign in to comment.