Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Close HttpClient to prevent hang on exit. #3992

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

Merged
merged 2 commits into from
May 2, 2025

Conversation

davidmorgan
Copy link
Contributor

I noticed a delay on shutdown dart-lang/sdk#60659 that turns out to be caused by the codepath that runs if the analyzer seems to be out of date: the actual current version is checked on pub.

This was causing shutdown to wait for the HTTP client timeout, meaning a minimum runtime of about 19 seconds for any run that did a resolve with an out of date analyzer.

Copy link

github-actions bot commented May 2, 2025

PR Health

Changelog Entry ✔️
Package Changed Files

Changes to files need to be accounted for in their respective changelogs.

@davidmorgan davidmorgan requested a review from jensjoha May 2, 2025 10:18
@davidmorgan davidmorgan merged commit 396b157 into dart-lang:master May 2, 2025
73 of 75 checks passed
@davidmorgan davidmorgan deleted the http-client branch May 2, 2025 10:53
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