Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Catch Errno::ETIMEDOUT errors as well.

  • Loading branch information...
commit b57004513e4e6c13d9f1d7f12dad6a932719b625 1 parent b9b2478
@jmoses authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/bundler/fetcher.rb
View
4 lib/bundler/fetcher.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.