Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow to configure connection timeout for RestClient resource.

  • Loading branch information...
commit 5bbe8c6aaada0171b89b33b123f0f8116b27acd6 1 parent 93276ab
@felipecvo felipecvo authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/cloud-crowd.rb
View
4 lib/cloud-crowd.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.