зеркало из https://github.com/github/ruby.git
* lib/resolv.rb (Resolv::DNS::Requester#request): rescue ECONNRESET
for Windows. reported by U.Nakamura. [ruby-dev:41477] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
3642fa1992
Коммит
7011534ea8
|
@ -1,3 +1,8 @@
|
|||
Mon May 31 21:49:42 2010 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* lib/resolv.rb (Resolv::DNS::Requester#request): rescue ECONNRESET
|
||||
for Windows. reported by U.Nakamura. [ruby-dev:41477]
|
||||
|
||||
Mon May 31 19:25:58 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* regparse.c (onig_syntax_warn): do not use external strings as
|
||||
|
|
|
@ -640,7 +640,8 @@ class Resolv
|
|||
end
|
||||
begin
|
||||
reply, from = recv_reply(select_result[0])
|
||||
rescue Errno::ECONNREFUSED
|
||||
rescue Errno::ECONNREFUSED, # GNU/Linux, FreeBSD
|
||||
Errno::ECONNRESET # Windows
|
||||
# No name server running on the server?
|
||||
# Don't wait anymore.
|
||||
raise ResolvTimeout
|
||||
|
|
Загрузка…
Ссылка в новой задаче