ruby-changes:20747
From: shyouhei <ko1@a...>
Date: Mon, 1 Aug 2011 15:22:17 +0900 (JST)
Subject: [ruby-changes:20747] shyouhei:r32795 (trunk): * test/xmlrpc/test_webrick_server.rb (Test_Webrick#setup_http_server):
shyouhei 2011-08-01 15:22:05 +0900 (Mon, 01 Aug 2011) New Revision: 32795 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32795 Log: * 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. Modified files: trunk/ChangeLog trunk/test/xmlrpc/test_webrick_server.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 32794) +++ ChangeLog (revision 32795) @@ -1,3 +1,15 @@ +Mon Aug 1 15:04:12 2011 URABE Shyouhei <shyouhei@r...> + + * 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. + Mon Aug 01 14:24:56 2011 Eric Hodel <drbrain@s...> * lib/rdoc.rb: Import RDoc 3.9.1. Fixes bugs in the RDoc::Markup Index: test/xmlrpc/test_webrick_server.rb =================================================================== --- test/xmlrpc/test_webrick_server.rb (revision 32794) +++ test/xmlrpc/test_webrick_server.rb (revision 32795) @@ -46,6 +46,7 @@ def setup_http_server(port, use_ssl) option = { + BindAddress: "localhost", :Port => port, :SSLEnable => use_ssl, } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/