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:
parent
a21a3b7d23
commit
d9ff8b3e86
1 changed files with 1 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue