Skip to content

Commit

Permalink
Ensure that timeout errors are treated as Timeout::Error
Browse files Browse the repository at this point in the history
  • Loading branch information
rubys committed Oct 2, 2008
1 parent 7cd6a62 commit 5fbf9c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planet/fido.rb
Expand Up @@ -85,7 +85,7 @@ def fetch uri, redirect_limit=10
# issue the request, handling timeout, ssl, etc.
response = begin
uri = URI.parse(uri)
Timeout::timeout(@timeout) {
Timeout::timeout(@timeout, Timeout::Error) {
http = Net::HTTP::new(uri.host, uri.port)

if uri.scheme == 'https'
Expand Down

0 comments on commit 5fbf9c4

Please sign in to comment.