Skip to content

Commit

Permalink
feat(webhook): set read and open timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jan 14, 2021
1 parent 7359286 commit 8b502c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pact_broker/domain/webhook_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def redacted_headers
end

def execute
options = PactBroker::BuildHttpOptions.call(uri)
options = PactBroker::BuildHttpOptions.call(uri).merge(read_timeout: 15, open_timeout: 15)
req = http_request
Net::HTTP.start(uri.hostname, uri.port, :ENV, options) do |http|
http.request req
Expand Down

0 comments on commit 8b502c4

Please sign in to comment.