1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/socket
Masaki Matsushita 0e9d56f5e7 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 6382f5cc91.
Test was failed on Solaris machines which don't have "http" in
/etc/services. In this commit, use "ssh" instead.
2019-09-10 10:10:59 +09:00
..
lib Support timeout for Addrinfo 2019-09-10 10:10:59 +09:00
.document
addrinfo.h
ancdata.c socket: use frozen string buffer when releasing GVL 2019-07-14 20:46:51 +09:00
basicsocket.c drop-in type check for rb_define_singleton_method 2019-08-29 18:34:09 +09:00
constants.c
depend Include ruby/assert.h in ruby/ruby.h so that assertions can be there 2019-07-14 17:58:03 +09:00
extconf.rb Support timeout for Addrinfo 2019-09-10 10:10:59 +09:00
getaddrinfo.c getaddrinfo.c: ai_errlist 2018-01-23 15:31:21 +00:00
getnameinfo.c getnameinfo.c: rubysocket.h for inet_ntop 2016-08-13 01:26:24 +00:00
ifaddr.c ifaddr.c: get_ifaddrs 2017-12-22 01:49:00 +00:00
init.c disable non-blocking pipes and sockets by default 2018-11-29 20:00:00 +00:00
ipsocket.c rb_ensure now free from ANYARGS 2019-08-27 15:52:26 +09:00
mkconstants.rb Suppress paranoid warnings for external/3rd-party libraries 2019-05-23 17:36:26 +09:00
option.c UNREACHABLE_RETURN 2018-07-24 05:38:07 +00:00
raddrinfo.c Support timeout for Addrinfo 2019-09-10 10:10:59 +09:00
rubysocket.h disable non-blocking pipes and sockets by default 2018-11-29 20:00:00 +00:00
socket.c drop-in type check for rb_define_singleton_method 2019-08-29 18:34:09 +09:00
sockport.h
sockssocket.c
tcpserver.c
tcpsocket.c socket.c,tcpsocket.c: improve deprecation notices 2017-11-07 20:13:00 +00:00
udpsocket.c rb_ensure now free from ANYARGS 2019-08-27 15:52:26 +09:00
unixserver.c * ext/socket/*.c: Add proper require for example to work. 2016-10-05 03:57:32 +00:00
unixsocket.c comma at the end of enum is a C99ism 2018-06-25 03:14:48 +00:00