Description
In our company we are using Karate test to monitor our production environment every 30 minutes. We encounter at least 5-10 times every week a failing test because of this exception:
org.apache.http.NoHttpResponseException: The target server failed to respond, http call failed after 5010 milliseconds for url:..
After reruning that test this exception does not occur anymore. It was not possible to reproduce that exception because this happen in random tests in our 30 minutes monitors from time to time. That's why it is hard to provide code which will reproduce the problem.
Luckily I found that this is a problem related with org.apache.httpcomponents:httpclient
which is not the best in handling steal connections. In stack overflow is a proposed solution: https://stackoverflow.com/a/10680629
I applied that solution from above stackoverflow to our monitoring tests and the problem does not occur anymore since 3 months.
The commit can be found here: master...ksola:karate:master
Is this fix worth to put int the master branch of karate?