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

Graceful shutdown #20

Merged
merged 3 commits into from
Aug 7, 2024
Merged

Graceful shutdown #20

merged 3 commits into from
Aug 7, 2024

Conversation

ioquatix
Copy link
Member

@ioquatix ioquatix commented Aug 7, 2024

This introduces a more robust shutdown mechanism which handles connections being acquired during the draining phase.

Connections won't be closed until they are returned to the pool. This may result in a deadlock with code that is buggy. Previously it would force close and emit a warning.

Types of Changes

  • Bug fix.
  • New feature.

Contribution

@ioquatix
Copy link
Member Author

ioquatix commented Aug 7, 2024

The algorithm for fetching unused resources could probably be made more efficient, but for now it's good enough.

@ioquatix ioquatix merged commit 60d1243 into main Aug 7, 2024
36 of 40 checks passed
@ioquatix ioquatix deleted the graceful-shutdown branch August 7, 2024 12:46
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.

1 participant