Skip to content

Close http connections immediately on disconnect #115

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 5 commits into from
Jul 2, 2024

Conversation

rkistner
Copy link
Contributor

@rkistner rkistner commented Jul 2, 2024

Fixes #114.

This now ensures the http connection is properly closed when disconnecting, before killing the Isolate.

This waits for any requests in progress, since closing the http client while the request is starting causes unpredictable uncaught errors.

It is tricky to cover all cases, but the tests do a fairly good job of checking them. This PR also improves the connection counting in tests, avoiding some sporadic test failures we had previously.

@rkistner rkistner requested a review from mugikhan July 2, 2024 11:54
@rkistner rkistner merged commit e4c8023 into master Jul 2, 2024
4 checks passed
@rkistner rkistner deleted the close-connections-on-disconnect branch July 2, 2024 13:06
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.

HTTP connections not immediately closed on db.disconnect()
2 participants