Skip to content

Make http_client's max_retries configurable #432

@jiasli

Description

@jiasli

Symptom

The one-time retry introduced by #326 seems to be insufficient:

a = requests.adapters.HTTPAdapter(max_retries=1)
self.http_client.mount("http://", a)
self.http_client.mount("https://", a)

Transient ConnectionError can still makes MSAL fail: #431

Alternatives

Of course I can provide my HTTP client, but this seems too heavy for such as small parameter tweak.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions