Skip to content

Commit

Permalink
Merge branch 'master' of git@github.com:lifo/docrails
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarnette committed May 7, 2008
2 parents 8f46355 + aca44bc commit 1851f5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion activeresource/lib/active_resource/base.rb
Expand Up @@ -183,12 +183,15 @@ module ActiveResource
# self.timeout = 5 # self.timeout = 5
# end # end
# #
# This sets the +timeout+ to 5 seconds. You can adjust the timeout to a value suitable for the RESTful API # This sets the +timeout+ to 5 seconds. You can adjust the +timeout+ to a value suitable for the RESTful API
# you are accessing. It is recommended to set this to a reasonably low value to allow your Active Resource # you are accessing. It is recommended to set this to a reasonably low value to allow your Active Resource
# clients (especially if you are using Active Resource in a Rails application) to fail-fast (see # clients (especially if you are using Active Resource in a Rails application) to fail-fast (see
# http://en.wikipedia.org/wiki/Fail-fast) rather than cause cascading failures that could incapacitate your # http://en.wikipedia.org/wiki/Fail-fast) rather than cause cascading failures that could incapacitate your
# server. # server.
# #
# When a timeout occurs, an ActiveResource::TimeoutError is raised. You should rescue from
# ActiveResource::TimeoutError in your Active Resource method calls.
#
# Internally, Active Resource relies on Ruby's Net::HTTP library to make HTTP requests. Setting +timeout+ # Internally, Active Resource relies on Ruby's Net::HTTP library to make HTTP requests. Setting +timeout+
# sets the <tt>read_timeout</tt> of the internal Net::HTTP instance to the same value. The default # sets the <tt>read_timeout</tt> of the internal Net::HTTP instance to the same value. The default
# <tt>read_timeout</tt> is 60 seconds on most Ruby implementations. # <tt>read_timeout</tt> is 60 seconds on most Ruby implementations.
Expand Down

0 comments on commit 1851f5a

Please sign in to comment.