Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constrain NetworkTimeout on IMDS calls from DefaultAzureCredential #24328

Merged
merged 7 commits into from
Oct 1, 2021

Conversation

schaabs
Copy link
Member

@schaabs schaabs commented Sep 29, 2021

Changes to our IMDS discovery model have regressed the perfomance of the DefaultAzureCredential on certain platforms where the IMDS endpoint is not available. This change introduces an internal setting to limit the NetworkTimeout on our initial IMDS calls.

The limit is 1 second the same as the original limit which was put on establishing an socket connection in the previous discovery model. If a response is received from the IMDS endpoint the limit is removed.

@schaabs schaabs requested a review from christothes September 29, 2021 23:09
@ghost ghost added the Azure.Identity label Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants