Skip to content

Commit

Permalink
update faraday timeouts to basic conn
Browse files Browse the repository at this point in the history
  • Loading branch information
brianlball authored Sep 26, 2023
1 parent 8c699fb commit 020fa8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/openstudio/analysis/server_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ def initialize(options = {})
# create connection with basic capabilities
@conn = Faraday.new(url: @hostname) do |faraday|
faraday.request :url_encoded # form-encode POST params
faraday.options.timeout = 300
faraday.options.open_timeout = 300
faraday.use Faraday::Response::Logger, @logger
# faraday.response @logger # log requests to STDOUT
faraday.adapter Faraday.default_adapter # make requests with Net::HTTP
Expand Down

0 comments on commit 020fa8d

Please sign in to comment.