You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our production code, we set the Timeout propery on our http.Client to limit the maximum request duration. These operations started to fail after upgrading to go1.17.3. The example code returns the expected result when executed using go1.17.2.
The expected result is that all requests bodies can be closed successfully as the timeout of 1 hour should not have been reached.
these partially fail in go 1.17.3:
body received 9964
body received 9964
body received 9964
...
these always work:
body received 9964
body received 9964
body received 9964
...
What did you see instead?
Instead, when executing using go1.17.3, some requests work while others return a context canceled when the body is closed.
these partially fail in go 1.17.3:
body received 9964
body received 9964
resp.Body.Close: context canceled
resp.Body.Close: context canceled
resp.Body.Close: context canceled
body received 9964
body received 9964
body received 9964
resp.Body.Close: context canceled
resp.Body.Close: context canceled
these always work:
body received 9964
body received 9964
body received 9964
body received 9964
body received 9964
body received 9964
body received 9964
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
In our production code, we set the
Timeout
propery on ourhttp.Client
to limit the maximum request duration. These operations started to fail after upgrading to go1.17.3. The example code returns the expected result when executed using go1.17.2.What did you expect to see?
The expected result is that all requests bodies can be closed successfully as the timeout of 1 hour should not have been reached.
What did you see instead?
Instead, when executing using go1.17.3, some requests work while others return a
context canceled
when the body is closed.The text was updated successfully, but these errors were encountered: