Skip to content

fix(storage): retry net.OpError on connection reset#10154

Merged
tritone merged 1 commit into
googleapis:mainfrom
tritone:operror-retry
May 13, 2024
Merged

fix(storage): retry net.OpError on connection reset#10154
tritone merged 1 commit into
googleapis:mainfrom
tritone:operror-retry

Conversation

@tritone

@tritone tritone commented May 11, 2024

Copy link
Copy Markdown
Contributor

We are seeing these errors surfaced via net.OpError as well as url.Error. Update the ShouldRetry function accordingly.

Also, use net.ErrClosed sentinel over string matching.

Fixes #9478

We are seeing these errors surfaced via net.OpError as well as
url.Error. Update the ShouldRetry function accordingly.

Also, use net.ErrClosed sentinel over string matching.

Fixes googleapis#9478
@tritone tritone requested review from a team May 11, 2024 04:23
@product-auto-label product-auto-label Bot added the api: storage Issues related to the Cloud Storage API. label May 11, 2024
@tritone tritone merged commit 54fab10 into googleapis:main May 13, 2024
@tritone tritone deleted the operror-retry branch May 13, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the Cloud Storage API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

storage: Why "ECONNRESET on read" is not transient error

2 participants