Cherry pick "Shut down pub http client after running dartdev" #55402
Labels
area-dart-cli
Use area-dart-cli for issues related to the 'dart' command like tool.
cherry-pick-approved
Label for approved cherrypick request
cherry-pick-review
Issue that need cherry pick triage to approve
Commit(s) to merge
https://dart-review.googlesource.com/c/sdk/+/361364
https://dart-review.googlesource.com/c/sdk/+/362360
Target
beta
Prepared changelist for beta/stable
https://dart-review.googlesource.com/c/sdk/+/361562
Issue Description
When
dart run
triggers apub get
the httpclient is not shut down, leaving the process hanging for ~15 seconds.What is the fix
Shut down the client.
Later we plan to manage the http client in a more structured manner, but this fix seems harmless and sufficient for now.
Why cherry-pick
To avoid the issue - leading to a frustrating user experience.
Risk
medium-low.
Issue link(s)
#55289
Extra Info
No response
The text was updated successfully, but these errors were encountered: