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

Cherry pick "Shut down pub http client after running dartdev" #55402

Closed
sigurdm opened this issue Apr 8, 2024 · 3 comments
Closed

Cherry pick "Shut down pub http client after running dartdev" #55402

sigurdm opened this issue Apr 8, 2024 · 3 comments
Assignees
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

Comments

@sigurdm
Copy link
Contributor

sigurdm commented Apr 8, 2024

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 a pub 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

@sigurdm sigurdm added the cherry-pick-review Issue that need cherry pick triage to approve label Apr 8, 2024
@mit-mit
Copy link
Member

mit-mit commented Apr 8, 2024

sgtm

@lrhn lrhn added the area-dart-cli Use area-dart-cli for issues related to the 'dart' command like tool. label Apr 8, 2024
@sigurdm
Copy link
Contributor Author

sigurdm commented Apr 11, 2024

I added the follow-up https://dart-review.googlesource.com/c/sdk/+/362360 to the picked CL's

They are both included in the prepared CL.

@itsjustkevin itsjustkevin added the cherry-pick-approved Label for approved cherrypick request label Apr 11, 2024
@itsjustkevin
Copy link
Contributor

Tagging @athomas for info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

6 participants