diff options
author | Cheah Chu Yeow <chuyeow@gmail.com> | 2008-04-13 14:40:30 +0800 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-04-22 09:30:41 +1200 |
commit | 105910429d5873dce677ef32eef5f705e0625d86 (patch) | |
tree | f68855ea14f72e6a094f84f660b5421baaa58308 /activeresource/lib/activeresource.rb | |
parent | 4809dcc1b50330a04ec61dd1fef6cdba9892ac3d (diff) | |
download | rails-105910429d5873dce677ef32eef5f705e0625d86.tar.gz rails-105910429d5873dce677ef32eef5f705e0625d86.tar.bz2 rails-105910429d5873dce677ef32eef5f705e0625d86.zip |
Introduce ActiveResource::Base.timeout. This allows a timeout to be set on the internal Net::HTTP instance ARes uses (default is 60 seconds). Setting a low timeout allows ARes clients to fail-fast in the event of a unresponsive/crashed server, rather than cause cascading failures in your application.
Signed-off-by: Michael Koziarski <michael@koziarski.com>
Diffstat (limited to 'activeresource/lib/activeresource.rb')
0 files changed, 0 insertions, 0 deletions