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
getnameinfo.c
ifaddr.c
init.c
ipsocket.c rb_ensure now free from ANYARGS 2019-08-27 15:52:26 +09:00
mkconstants.rb
option.c
raddrinfo.c Support timeout for Addrinfo 2019-09-10 10:10:59 +09:00
rubysocket.h
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
udpsocket.c rb_ensure now free from ANYARGS 2019-08-27 15:52:26 +09:00
unixserver.c
unixsocket.c