Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Catch Errno::ETIMEDOUT errors from Fetcher#fetch #2091

Merged
merged 1 commit into from

2 participants

@jmoses

Since I get this one all the time when my network is being iffy.

@indirect
Owner

Awesome, thanks. :)

@indirect indirect merged commit 7de9080 into bundler:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 7, 2012
  1. @jmoses
This page is out of date. Refresh to see the latest.
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
Something went wrong with that request. Please try again.