[ruby-core:91303] Re: [Ruby trunk Feature#15553] Addrinfo.getaddrinfo supports timeout

From: Masaki Matsushita <glass.saga@...>
Date: 2019-01-27 20:37:47 UTC
List: ruby-core #91303
> Can we rely on resolv.rb more, instead? (and improve on it)
That might be an option to avoid using Timeout.

> getaddrinfo_a(3) still spawns background threads in glibc; so not a big win.
As I briefly looked through glibc code, it seems to share and reuse
its background threads.
Please take a look at glibc/resolv/gai_misc.c and related files.

2019年1月26日(土) 12:49 Eric Wong <normalperson@yhbt.net>:
>
> glass.saga@gmail.com wrote:
> > Feature #15553: Addrinfo.getaddrinfo supports timeout
> > https://bugs.ruby-lang.org/issues/15553
>
> Can we rely on resolv.rb more, instead? (and improve on it)
>
> > It uses getaddrinfo_a(3) if available, otherwise it uses Timeout.
>
> getaddrinfo_a(3) still spawns background threads in glibc;
> so not a big win.
>
> Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread