pact-jvm icon indicating copy to clipboard operation
pact-jvm copied to clipboard

pact-jvm-provider-maven: time-out settings for state change?

Open ndelacrz opened this issue 7 years ago • 1 comments

We're using the pact-jvm-provider-maven and we are using a "provider state change service" to perform the set-up and tear-down for each test. However, from time-to-time, the execution of the pact-jvm-provider-maven's verify is getting HTTP 504 when trying to send a POST to the "provider state change service", most probably due to our slow network. So what we're thinking is to somehow increase the timeout period (amount of time the pact-jvm-provider-maven will wait for the "provider state change service" to respond) Is there such a parameter?

ndelacrz avatar Jul 18 '17 07:07 ndelacrz

Good idea, both the connection and socket timeout values should be able to be changed on the HTTP client. It just needs to be configurable via the maven plugin.

uglyog avatar Jul 20 '17 22:07 uglyog