summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMasaki Matsushita <glass.saga@gmail.com>2019-09-10 09:57:31 +0900
committerMasaki Matsushita <glass.saga@gmail.com>2019-09-10 10:10:59 +0900
commit0e9d56f5e73ed2fd8e7c858fdea7b7d5b905bb64 (patch)
tree6f6133010c44d90c82e0f3b5a53edf649e4352a5 /include
parent3678c371199d9a048589bf3da37f06223912dea5 (diff)
Support timeout for Addrinfo
Addrinfo.getaddrinfo and .foreach now accepts :timeout in seconds as a keyword argument. If getaddrinfo_a(3) is available, the timeout will be applied for name resolution. Otherwise, it will be ignored. Socket.tcp accepts :resolv_timeout to use this feature. This commit is retry of 6382f5cc91ac9e36776bc854632d9a1237250da7. Test was failed on Solaris machines which don't have "http" in /etc/services. In this commit, use "ssh" instead.
Diffstat (limited to 'include')
-rw-r--r--include/ruby/intern.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h
index ed1a4cfdd5..4fa00d55e6 100644
--- a/include/ruby/intern.h
+++ b/include/ruby/intern.h
@@ -936,6 +936,7 @@ VALUE rb_time_num_new(VALUE, VALUE);
struct timeval rb_time_interval(VALUE num);
struct timeval rb_time_timeval(VALUE time);
struct timespec rb_time_timespec(VALUE time);
+struct timespec rb_time_timespec_interval(VALUE num);
VALUE rb_time_utc_offset(VALUE time);
/* variable.c */
VALUE rb_mod_name(VALUE);