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

Dart CLI hangs due to unclosed HTTP client #403

Open
matthew-carroll opened this issue Apr 29, 2024 · 1 comment
Open

Dart CLI hangs due to unclosed HTTP client #403

matthew-carroll opened this issue Apr 29, 2024 · 1 comment

Comments

@matthew-carroll
Copy link

I discovered experimentally that my GitHub instance was causing my CLI app to hang. All of my code would complete executing and then the terminal would hang for nearly 20 seconds for no apparent reason.

Eventually I tried passing my own Client into GitHub and then manually closing the Client after loading info from GitHub. This immediately fixed the hanging issue.

By default, the Client should be closed within GitHub. If desired, perhaps you could add an option to use a long-lived connection, but in the absence of passing additional configuration, the default behavior should be to close the connection after every call. Otherwise developers will end up very confused like I was.

Copy link

👋 Thanks for reporting! @robrbecker will take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant