diff options
author | Masaki Matsushita <glass.saga@gmail.com> | 2020-12-07 12:49:44 +0900 |
---|---|---|
committer | Masaki Matsushita <glass.saga@gmail.com> | 2020-12-07 13:33:53 +0900 |
commit | 5d8bcc4870601ab1ee05346346f241d4a805aac9 (patch) | |
tree | bcc2176902005a12c3b8acd416cc5920deb7e976 /ext/socket/ipsocket.c | |
parent | 1ba05f5b2d7b1701242023b5ac156b169f1ded90 (diff) |
Revert getaddrinfo_a()
getaddrinfo_a() gets stuck after fork().
To avoid this, we need 1 second sleep to wait for internal
worker threads of getaddrinfo_a() to be finished, but that is unacceptable.
[Bug #17220] [Feature #17134] [Feature #17187]
Diffstat (limited to 'ext/socket/ipsocket.c')
-rw-r--r-- | ext/socket/ipsocket.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/ext/socket/ipsocket.c b/ext/socket/ipsocket.c index 96782c76e5..646bc7c758 100644 --- a/ext/socket/ipsocket.c +++ b/ext/socket/ipsocket.c @@ -51,16 +51,9 @@ init_inetsock_internal(VALUE v) int family = AF_UNSPEC; const char *syscall = 0; -#ifdef HAVE_GETADDRINFO_A - arg->remote.res = rsock_addrinfo_a(arg->remote.host, arg->remote.serv, - family, SOCK_STREAM, - (type == INET_SERVER) ? AI_PASSIVE : 0, - arg->resolv_timeout); -#else arg->remote.res = rsock_addrinfo(arg->remote.host, arg->remote.serv, family, SOCK_STREAM, (type == INET_SERVER) ? AI_PASSIVE : 0); -#endif /* |