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/rubysocket.h | |
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/rubysocket.h')
-rw-r--r-- | ext/socket/rubysocket.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/ext/socket/rubysocket.h b/ext/socket/rubysocket.h index 9724fcc403..b0e494f54e 100644 --- a/ext/socket/rubysocket.h +++ b/ext/socket/rubysocket.h @@ -320,10 +320,6 @@ int rb_getnameinfo(const struct sockaddr *sa, socklen_t salen, char *host, size_ int rsock_fd_family(int fd); struct rb_addrinfo *rsock_addrinfo(VALUE host, VALUE port, int family, int socktype, int flags); struct rb_addrinfo *rsock_getaddrinfo(VALUE host, VALUE port, struct addrinfo *hints, int socktype_hack); -#ifdef HAVE_GETADDRINFO_A -struct rb_addrinfo *rsock_addrinfo_a(VALUE host, VALUE port, int family, int socktype, int flags, VALUE timeout); -struct rb_addrinfo *rsock_getaddrinfo_a(VALUE host, VALUE port, struct addrinfo *hints, int socktype_hack, VALUE timeout); -#endif VALUE rsock_fd_socket_addrinfo(int fd, struct sockaddr *addr, socklen_t len); VALUE rsock_io_socket_addrinfo(VALUE io, struct sockaddr *addr, socklen_t len); |