[DOC] Add some descriptions for options of Socket::tcp

This commit is contained in:
Misaki Shioi 2024-10-07 15:28:32 +09:00 committed by GitHub
parent 773d140f65
commit 32c733f57b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
Notes: git 2024-10-07 06:28:49 +00:00
Merged: https://github.com/ruby/ruby/pull/11813

Merged-By: nobu <nobu@ruby-lang.org>

View File

@ -635,7 +635,9 @@ class Socket < BasicSocket
# The optional last argument _opts_ is options represented by a hash. # The optional last argument _opts_ is options represented by a hash.
# _opts_ may have following options: # _opts_ may have following options:
# #
# [:connect_timeout] specify the timeout in seconds. # [:resolv_timeout] specify the timeout of hostname resolution in seconds.
# [:connect_timeout] specify the timeout of conncetion in seconds.
# [:fast_fallback] enable Happy Eyeballs Version 2 ({RFC 8305}[https://datatracker.ietf.org/doc/html/rfc8305]) algorithm (Enabled by default).
# #
# If a block is given, the block is called with the socket. # If a block is given, the block is called with the socket.
# The value of the block is returned. # The value of the block is returned.