Skip to content

frzme/wiremock-spring-webclient-block

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Spring WebClient / WireMock block/freeze

Using WireMock 2.21 (2.18-2.21 seem to be affected) when repeatedely sending http requests which request and decode JSON using the spring WebClient to WireMock the requests sometimes freezes and fail to reply. The issue does not occur when using Wiremock 2.17 and it does not occur when requesting Strings (and not decoding JSON). I'm not entirely certain whether this is a WireMock or a Spring WebClient issue, I'm therefore raising this issue with both projects.

The failing test setup can be found here: https://github.com/FrzMe/wiremock-spring-webclient-block/blob/master/src/test/java/webclientblock/WebClientBlockTest.java#L49

Reasons why it could be a spring WebClient issue:

Reasons why it could be a WireMock issue:

The Issue can be reproduced when running the WebClientBlockTest from https://github.com/FrzMe/wiremock-spring-webclient-block - there the test testWiremockServiceGetJsonDecode fails consistently for me (no later than ~8000 iterations - sometimes much earlier) The test also shows that the same problem can not be reproduced when making http requests using the spring RestTemplate.

Both WireMock and WebClient are set up completely self contained within the test.

About

Shows a "non-reply"/blocked execution behavior in interaction between Wiremock and spring WebClient

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages