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

PR: Raise timeout threshold for getting user environment variables #23278

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mrclary
Copy link
Contributor

@mrclary mrclary commented Dec 14, 2024

Description of Changes

I've run into an scenario where get_user_environment_variables can take up to ~1s. This triggers the timeout and renders the function useless.

I propose raising the timeout to 3s for all scenarios and, in deference to #21172, caching the result.

On startup, get_user_environment_variables is called 8 times (!). If it takes ~0.5s without timeout, then it will cost in total 4s at startup. Raising the timeout to 3s will cost in total at most 3s (in extreme cases), so I think this is a good tradeoff.

@mrclary mrclary self-assigned this Dec 14, 2024
@mrclary mrclary added this to the v6.0.4 milestone Dec 15, 2024
@mrclary mrclary marked this pull request as ready for review December 15, 2024 04:32
@mrclary mrclary force-pushed the env-var-timeout branch 2 times, most recently from 82d24cd to b9c2b90 Compare December 17, 2024 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant