Bug #3368

Re: [ruby-cvs:35269] Ruby:r28058 (trunk): * lib/resolv.rb (Resolv::DNS::Requester#request): rescue ECONNREFUSED.

Added by Usaku NAKAMURA almost 5 years ago. Updated about 4 years ago.

[ruby-dev:41477]
Status:Closed
Priority:Low
Assignee:Akira Tanaka
ruby -v:ruby 1.9.3dev (2010-05-31 trunk 28102) [i386-mswin32] Backport:

Description

=begin
こんにちは、なかむら(う)です。

In message " Ruby:r28058 (trunk): * lib/resolv.rb (Resolv::DNS::Requester#request): rescue ECONNREFUSED."
on May.29,2010 09:06:19, akr@ruby-lang.org wrote:

akr 2010-05-29 09:06:17 +0900 (Sat, 29 May 2010)

New Revision: 28058

http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=28058

Log:
* lib/resolv.rb (Resolv::DNS::Requester#request): rescue ECONNREFUSED.

Modified files:
trunk/ChangeLog
trunk/lib/resolv.rb
trunk/test/resolv/test_dns.rb

Windowsでは追加されたテストがErrno::ECONNRESETでエラーとなり
ます。
思うに、resolv.rbでECONNREFUSEDだけでなくECONNRESETもrescue
すればいいのではないかと思いますが、どうでしょうか?

それでは。
--
U.Nakamura usa@garbagecollect.jp
=end

History

#1 Updated by Usaku NAKAMURA almost 5 years ago

  • Category set to lib
  • Status changed from Open to Assigned
  • Assignee set to Akira Tanaka
  • Target version set to 2.0.0
  • ruby -v set to ruby 1.9.3dev (2010-05-31 trunk 28102) [i386-mswin32]

=begin

=end

#2 Updated by Akira Tanaka almost 5 years ago

=begin
2010年5月31日11:49 U.Nakamura usa@garbagecollect.jp:

Windowsでは追加されたテストがErrno::ECONNRESETでエラーとなり
ます。

おぉ、発生するエラーが違いましたか。

思うに、resolv.rbでECONNREFUSEDだけでなくECONNRESETもrescue
すればいいのではないかと思いますが、どうでしょうか?

そのようにしました。
--
[田中 哲][たなか あきら][Tanaka Akira]

=end

#3 Updated by Akira Tanaka almost 5 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r28109.
Usaku, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Also available in: Atom PDF