mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
How to simulate disconnect? #175
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @AlexanderDorofeev on GitHub (Jun 6, 2019).
Hi!
I'm trying to figure out how to close connection in the middle of a request.
Request with such configuration will be successful. Am I missing something that will cause a connection to terminate?
Thank you
@StefH commented on GitHub (Jun 7, 2019):
You could maybe also throw an exception?
@AlexanderDorofeev commented on GitHub (Jun 14, 2019):
Thank you. This worked. But I've discovered, that some retries are done by-default in HttpClient. So, if sombody like me, is testing against custom retry policies, then there should be a delay to exhaust standard retry. This delay works for my case