lib/resolv.rb: consider ENETUNREACH as ResolvTimeout
This allows "gem install /path/to/local.gem" to be successful on a machine without a network connection. [ruby-core:67411] [Bug #10712] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1b2276af64
commit
89ba151440
@ -1,3 +1,8 @@
|
|||||||
|
Thu Jan 8 07:17:14 2015 Eric Wong <e@80x24.org>
|
||||||
|
|
||||||
|
* lib/resolv.rb: consider ENETUNREACH as ResolvTimeout
|
||||||
|
[ruby-core:67411] [Bug #10712]
|
||||||
|
|
||||||
Thu Jan 8 00:13:52 2015 Tanaka Akira <akr@fsij.org>
|
Thu Jan 8 00:13:52 2015 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* lib/open3.rb: Open3 properly passes non-keyword hash args to spawn.
|
* lib/open3.rb: Open3 properly passes non-keyword hash args to spawn.
|
||||||
|
@ -670,8 +670,8 @@ class Resolv
|
|||||||
timelimit = start + tout
|
timelimit = start + tout
|
||||||
begin
|
begin
|
||||||
sender.send
|
sender.send
|
||||||
rescue Errno::EHOSTUNREACH
|
rescue Errno::EHOSTUNREACH, # multi-homed IPv6 may generate this
|
||||||
# multi-homed IPv6 may generate this
|
Errno::ENETUNREACH
|
||||||
raise ResolvTimeout
|
raise ResolvTimeout
|
||||||
end
|
end
|
||||||
while true
|
while true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user