From 32c733f57bb91e22972319ee63eac9521d954ebc Mon Sep 17 00:00:00 2001 From: Misaki Shioi <31817032+shioimm@users.noreply.github.com> Date: Mon, 7 Oct 2024 15:28:32 +0900 Subject: [PATCH] [DOC] Add some descriptions for options of `Socket::tcp` --- ext/socket/lib/socket.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/socket/lib/socket.rb b/ext/socket/lib/socket.rb index d61de1e8e9..0832ed1783 100644 --- a/ext/socket/lib/socket.rb +++ b/ext/socket/lib/socket.rb @@ -635,7 +635,9 @@ class Socket < BasicSocket # The optional last argument _opts_ is options represented by a hash. # _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. # The value of the block is returned.