/ go Public
net/http: performs unexpected retry on GET requests under specific conditions #48438
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
What did you do?
The above playground provides a small example of
http.Get()performing a retry
under specific circumstances. This does not happen with POST requests, which can be
demonstrated by setting
truein the playground.
What did you expect to see?
No automatic retries.
Aka seeing "HELLO WORLD!" printed exactly 3 times in all cases.
What did you see instead?
"HELLO WORLD!" printed 4 times, due to the retry of a failed request.
The retry happens only if there has been a successful request directly before it.
The text was updated successfully, but these errors were encountered: