wiremock: On JDK11 WireMock does not force 'CONNECTION_RESET'
Bug reports
I am using version 2.18.0
This stubbing code on JDK 8,9,10 produces a “Connection reset” error
@Rule public WireMockRule wireMockRule = new WireMockRule(0, 0);
stubFor(post(urlEqualTo(“/index_connection_reset.html”)) .withHeader(“Content-Type”, new EqualToPattern(“application/json”)) .willReturn(aResponse() .withFault(Fault.CONNECTION_RESET_BY_PEER)));
On OpenJDK11 build 23 the request ends with “Connection timed out”
java -version
openjdk 11-ea 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11-ea+23)
OpenJDK 64-Bit Server VM 18.9 (build 11-ea+23, mixed mode)
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 3
- Comments: 18 (6 by maintainers)
I also doesn’t work on some Windows versions as far as I can tell. I probably need to put a health warning on there next time I edit the docs.