Permalink
Browse files

Allow to configure connection timeout for RestClient resource.

  • Loading branch information...
1 parent 93276ab commit 5bbe8c6aaada0171b89b33b123f0f8116b27acd6 @felipecvo felipecvo committed Jul 30, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/cloud-crowd.rb
View
@@ -133,7 +133,7 @@ def pid_path(pid_file=nil)
# a connection, and a timeout of 30 to finish reading it.
def client_options
return @client_options if @client_options
- @client_options = {:timeout => 30, :open_timeout => 5}
+ @client_options = {:timeout => config[:timeout] || 30, :open_timeout => config[:open_timeout] || 5}
if CloudCrowd.config[:http_authentication]
@client_options[:user] = CloudCrowd.config[:login]
@client_options[:password] = CloudCrowd.config[:password]
@@ -186,4 +186,4 @@ def node?
end
-end
+end

0 comments on commit 5bbe8c6

Please sign in to comment.