When having this issue in tests of a Spring Boot application using Feign one can solve it just by adding following property:
spring.cloud.openfeign.httpclient.time-to-live=0
This effectively turns off TCP connection pooling by Apache HttpClient used by Feign. See: https://github.com/wiremock/wiremock/issues/97#issuecomment-1251105611