We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d3b772c + 090270d commit 9d29158Copy full SHA for 9d29158
msal/application.py
@@ -241,6 +241,13 @@ def __init__(
241
# But you can patch that (https://github.com/psf/requests/issues/3341):
242
self.http_client.request = functools.partial(
243
self.http_client.request, timeout=timeout)
244
+
245
+ # Enable a minimal retry. Better than nothing.
246
+ # https://github.com/psf/requests/blob/v2.25.1/requests/adapters.py#L94-L108
247
+ a = requests.adapters.HTTPAdapter(max_retries=1)
248
+ self.http_client.mount("http://", a)
249
+ self.http_client.mount("https://", a)
250
251
self.app_name = app_name
252
self.app_version = app_version
253
self.authority = Authority(
0 commit comments