summaryrefslogtreecommitdiff
path: root/test/socket
diff options
context:
space:
mode:
authorMasaki Matsushita <glass.saga@gmail.com>2020-12-07 12:49:44 +0900
committerMasaki Matsushita <glass.saga@gmail.com>2020-12-07 13:33:53 +0900
commit5d8bcc4870601ab1ee05346346f241d4a805aac9 (patch)
treebcc2176902005a12c3b8acd416cc5920deb7e976 /test/socket
parent1ba05f5b2d7b1701242023b5ac156b169f1ded90 (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 'test/socket')
-rw-r--r--test/socket/test_socket.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/test/socket/test_socket.rb b/test/socket/test_socket.rb
index f0b3f66945..b5be0c7cf3 100644
--- a/test/socket/test_socket.rb
+++ b/test/socket/test_socket.rb
@@ -102,16 +102,6 @@ class TestSocket < Test::Unit::TestCase
assert_nothing_raised('[ruby-core:29427]'){ TCPServer.open('localhost', 0) {} }
end
- def test_getaddrinfo_after_fork
- skip "fork not supported" unless Process.respond_to?(:fork)
- assert_normal_exit(<<-"end;", '[ruby-core:100329] [Bug #17220]')
- require "socket"
- Socket.getaddrinfo("localhost", nil)
- pid = fork { Socket.getaddrinfo("localhost", nil) }
- assert_equal pid, Timeout.timeout(3) { Process.wait(pid) }
- end;
- end
-
def test_getnameinfo
assert_raise(SocketError) { Socket.getnameinfo(["AF_UNIX", 80, "0.0.0.0"]) }