1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
shyouhei 2011-08-01 06:22:05 +00:00
parent a429cafc4d
commit 3237f7dc9a
2 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,15 @@
Mon Aug 1 15:04:12 2011 URABE Shyouhei <shyouhei@ruby-lang.org>
* 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@segment7.net>
* lib/rdoc.rb: Import RDoc 3.9.1. Fixes bugs in the RDoc::Markup

View file

@ -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,
}