Project

General

Profile

Actions

Bug #3368

closed

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

Added by usa (Usaku NAKAMURA) over 14 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.3dev (2010-05-31 trunk 28102) [i386-mswin32]
Backport:
[ruby-dev:41477]

Description

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

In message "[ruby-cvs:35269] Ruby:r28058 (trunk): * lib/resolv.rb (Resolv::DNS::Requester#request): rescue ECONNREFUSED."
on May.29,2010 09:06:19, 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
=end

Actions #1

Updated by usa (Usaku NAKAMURA) over 14 years ago

  • Category set to lib
  • Status changed from Open to Assigned
  • Assignee set to akr (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

Actions #2

Updated by akr (Akira Tanaka) over 14 years ago

=begin
2010年5月31日11:49 U.Nakamura :

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

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

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

そのようにしました。

[田中 哲][たなか あきら][Tanaka Akira]

=end

Actions #3

Updated by akr (Akira Tanaka) over 14 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

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0