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

fix: Sets some best-effort timeouts #115

Merged
merged 3 commits into from
Jun 21, 2024
Merged

fix: Sets some best-effort timeouts #115

merged 3 commits into from
Jun 21, 2024

Conversation

CarlosNihelton
Copy link
Collaborator

@CarlosNihelton CarlosNihelton commented Jun 18, 2024

Those functions used the background context.
When wslservice.exe hangs/crashes, wsl.exe commands might hang for very long, so would those functions.

We're setting some generous timeouts to couple with a variety of hardware. In the happy paths, 1/100th to 1/10th of those timeouts should be enough.


UDENG-3129

Those functions used the background context.
When wslservice.exe hangs/crashes, wsl.exe commands might hang for very long.
We're setting some generous timeouts to couple with a variety of hardware.
In the happy paths, 1/100th to 1/10th of those timeouts should be enough.
@CarlosNihelton CarlosNihelton marked this pull request as ready for review June 18, 2024 19:57
@CarlosNihelton CarlosNihelton requested a review from a team as a code owner June 18, 2024 19:57
Copy link
Member

@didrocks didrocks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one comment to double ensure we want to commit to that API. Otherwise, on the timeout itself, this looks good to me. I am a little bit afraid of the à second timeout for list and so on on slower machine and I would really relax them still a bit, as they are just timeouts (like 5 seconds is the minimum of something else is happening on the machine)

Minimum of 5s, with 10s for Shutdown which
seems to do more work.
Until we have a definite reason to expose it.
@CarlosNihelton CarlosNihelton merged commit 0ca2385 into main Jun 21, 2024
6 checks passed
@CarlosNihelton CarlosNihelton deleted the wsl-exe-timeouts branch June 21, 2024 02:21
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.

2 participants