summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasaki Matsushita <glass.saga@gmail.com>2020-09-25 15:39:26 +0900
committerMasaki Matsushita <glass.saga@gmail.com>2020-09-25 15:39:26 +0900
commitf2d1808e7364aa909101c5208086ef026d5367a2 (patch)
tree4407f910ce3926f10aa5661d6172ed9cfa532a07
parent511fe23fa2bdf1f17faa91e0558be47b5bb62b2a (diff)
downloadruby-f2d1808e7364aa909101c5208086ef026d5367a2.tar.gz
Add comments for resolv_timeout
-rw-r--r--ext/socket/tcpsocket.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/socket/tcpsocket.c b/ext/socket/tcpsocket.c
index 6baf367709..1446e390e4 100644
--- a/ext/socket/tcpsocket.c
+++ b/ext/socket/tcpsocket.c
@@ -12,11 +12,13 @@
/*
* call-seq:
- * TCPSocket.new(remote_host, remote_port, local_host=nil, local_port=nil)
+ * TCPSocket.new(remote_host, remote_port, local_host=nil, local_port=nil, resolv_timeout: nil)
*
* Opens a TCP connection to +remote_host+ on +remote_port+. If +local_host+
* and +local_port+ are specified, then those parameters are used on the local
* end to establish the connection.
+ *
+ * [:resolv_timeout] specify the name resolution timeout in seconds.
*/
static VALUE
tcp_init(int argc, VALUE *argv, VALUE sock)