Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

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

Merged
merged 1 commit into from Sep 7, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/bundler/fetcher.rb
Expand Up @@ -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
Expand Down