Permalink
Browse files

Catch Errno::ETIMEDOUT errors as well.

  • Loading branch information...
jmoses committed Sep 7, 2012
1 parent b9b2478 commit b57004513e4e6c13d9f1d7f12dad6a932719b625
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/bundler/fetcher.rb
View
@@ -143,8 +143,8 @@ def fetch(uri, counter = 0)
begin
Bundler.ui.debug "Fetching from: #{uri}"
response = @@connection.request(uri)
- rescue Timeout::Error, Errno::EINVAL, Errno::ECONNRESET, EOFError,
- SocketError, Net::HTTPBadResponse, Net::HTTPHeaderSyntaxError,
+ rescue Timeout::Error, Errno::EINVAL, Errno::ECONNRESET, Errno::ETIMEDOUT,
+ EOFError, SocketError, Net::HTTPBadResponse, Net::HTTPHeaderSyntaxError,
Net::HTTP::Persistent::Error, Net::ProtocolError => e
raise HTTPError, "Network error while fetching #{uri}"
end

0 comments on commit b570045

Please sign in to comment.