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

* resolv.rb (Resolv::DNS): use the same DNS server when retry using TCP.

reported by Julian Mehnle.  [ruby-core:32970]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2010-11-27 09:03:26 +00:00
parent 3e57529e3e
commit 0ebec8cf72
2 changed files with 8 additions and 4 deletions

View file

@ -1,3 +1,8 @@
Sat Nov 27 17:57:08 2010 Tanaka Akira <akr@fsij.org>
* resolv.rb (Resolv::DNS): use the same DNS server when retry using
TCP. reported by Julian Mehnle. [ruby-core:32970]
Sat Nov 27 15:45:27 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm_dump.c (rb_vm_bugreport): see CrashReport log on Mac OS X.

View file

@ -509,7 +509,7 @@ class Resolv
if reply.tc == 1 and not Requester::TCP === requester
requester.close
# Retry via TCP:
requester = make_tcp_requester
requester = make_tcp_requester(nameserver, port)
senders = {}
# This will use TCP for all remaining candidates (assuming the
# current candidate does not already respond successfully via
@ -540,9 +540,8 @@ class Resolv
end
end
def make_tcp_requester # :nodoc:
nameserver_port = @config.nameserver_port
return Requester::TCP.new(*nameserver_port[0])
def make_tcp_requester(host, port) # :nodoc:
return Requester::TCP.new(host, port)
end
def extract_resources(msg, name, typeclass) # :nodoc: