From 3237f7dc9a436a44c068e9bd8572d6e4812df772 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Mon, 1 Aug 2011 06:22:05 +0000 Subject: * test/xmlrpc/test_webrick_server.rb (Test_Webrick#setup_http_server): XMLRPC::Client.new3(), when called without host: argument, tries to connect to a host where "localhost" resolves to. On the other hand a WEBrick::HTTPServer.new(), when called without BindAddress: argument, tries to listen all the address where getaddrinfo(AF_UNSPEC) resolves to. This is a mismatch because "localhost" might not resolve to one of those listening sockets. We would better explicitly specify "localhost" here and if failed, just skip the whole test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/xmlrpc/test_webrick_server.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/xmlrpc') diff --git a/test/xmlrpc/test_webrick_server.rb b/test/xmlrpc/test_webrick_server.rb index 5a9f51be33..e66a46718a 100644 --- a/test/xmlrpc/test_webrick_server.rb +++ b/test/xmlrpc/test_webrick_server.rb @@ -46,6 +46,7 @@ class Test_Webrick < Test::Unit::TestCase def setup_http_server(port, use_ssl) option = { + BindAddress: "localhost", :Port => port, :SSLEnable => use_ssl, } -- cgit v1.2.3