1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Ignore timeout option to Addrinfo.getaddrinfo

This was already ignored on platforms that do not implement
getaddrinfo_a. Using getaddrinfo_a causes issues with many
calls to Addrinfo.getaddrinfo and also when using
Addrinfo.getaddrinfo with fork.

I would have updated the documentation for this, but the
option was already not documented.
This commit is contained in:
Jeremy Evans 2021-07-01 12:08:20 -07:00 committed by usa
parent a21a3b7d23
commit d9ff8b3e86

View file

@ -2496,9 +2496,7 @@ addrinfo_s_getaddrinfo(int argc, VALUE *argv, VALUE self)
rb_scan_args(argc, argv, "24:", &node, &service, &family, &socktype,
&protocol, &flags, &opts);
rb_get_kwargs(opts, &id_timeout, 0, 1, &timeout);
if (timeout == Qundef) {
timeout = Qnil;
}
timeout = Qnil;
return addrinfo_list_new(node, service, family, socktype, protocol, flags, timeout);
}