这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Feb 12, 2025. It is now read-only.
This repository was archived by the owner on Feb 12, 2025. It is now read-only.

ECONNRESET on read is not a transient network error #450

@mgaurav

Description

@mgaurav

In DoRetryWithStatusCodes, we retry for a list of status codes and also retry on temporary network errors. However, I am seeing transient network errors not being retried.

E.g.
compute.DisksClient#List: Failure sending request: StatusCode=0 -- Original Error: Get https://management.azure.com/subscriptions/13979c32-3382-46f7-8f3a-ef86b8270227/providers/Microsoft.Compute/disks?api-version=2018-09-30: read tcp 10.28.1.65:56094-u003e13.91.242.34:443: read: connection reset by peer

It looks to me that "connection reset by peer" error is not treated as temporary by IsTemporaryNetworkError. Is there anyway I can enable retry on it for all autorest call (other than doing it in my application code itself)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions