Skip to content

Commit

Permalink
Allow to configure connection timeout for RestClient resource.
Browse files Browse the repository at this point in the history
  • Loading branch information
felipecvo committed Jul 30, 2010
1 parent 93276ab commit 5bbe8c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cloud-crowd.rb
Expand Up @@ -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]
Expand Down Expand Up @@ -186,4 +186,4 @@ def node?

end

end
end

0 comments on commit 5bbe8c6

Please sign in to comment.