pulumi/sdk/go/common/util/httputil
Thomas Gummerer 0dc51aadd9
retry post requests that timeout during handshake (#16576)
We've had quite a few test flakes that happen because of TLS handshake
timeouts to the service backend. These are usually during stack creation
(which happens a lot during tests), which are POST requests.

POST requests are not generally safe to retry, because the request could
already have been sent to the backend and an action taken, but the
client couldn't read the response. However when there is a TLS handshake
failure, the request can never have made it to the backend, so these
errors are safe to retry.

This should hopefully help with
https://github.com/pulumi/pulumi/issues/16529.
2024-07-03 16:22:24 +00:00
..
http.go retry post requests that timeout during handshake (#16576) 2024-07-03 16:22:24 +00:00
http_test.go all: Drop ioutil 2023-01-06 16:35:14 -08:00