diff options
author | Masaki Matsushita <[email protected]> | 2020-12-07 12:49:44 +0900 |
---|---|---|
committer | Masaki Matsushita <[email protected]> | 2020-12-07 13:33:53 +0900 |
commit | 5d8bcc4870601ab1ee05346346f241d4a805aac9 (patch) | |
tree | bcc2176902005a12c3b8acd416cc5920deb7e976 /ext/socket/socket.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/socket.c')
-rw-r--r-- | ext/socket/socket.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c index dc6588f82f..96365fbf91 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -1185,11 +1185,7 @@ sock_s_getaddrinfo(int argc, VALUE *argv, VALUE _) norevlookup = rsock_do_not_reverse_lookup; } -#ifdef HAVE_GETADDRINFO_A - res = rsock_getaddrinfo_a(host, port, &hints, 0, Qnil); -#else res = rsock_getaddrinfo(host, port, &hints, 0); -#endif ret = make_addrinfo(res, norevlookup); rb_freeaddrinfo(res); |