Skip to content

api: add Connection.CloseGraceful() and ConnectionPool.CloseGraceful() #296

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 3 commits into from
May 29, 2023

Conversation

oleg-jukovec
Copy link
Collaborator

CloseGraceful closes Connection gracefully. Unlike Connection.Close() it waits for all requests to complete.
CloseGraceful closes ConnectionPool gracefully. Unlike ConnectionPool.Close() it waits for all requests to complete.

Changes to the connection pool may seem too global, but it will simplify #290 .

I didn't forget about (remove if it is not applicable):

Related issues:

Closes #257

We forgot to update a comment about the state.

Part of #257
CloseGraceful closes Connection gracefully. Unlike Connection.Close()
it waits for all requests to complete.

Part of #257
CloseGraceful closes ConnectionPool gracefully. Unlike
ConnectionPool.Close() it waits for all requests to complete.

Closes #257
@oleg-jukovec oleg-jukovec force-pushed the oleg-jukovec/gh-257-graceful-close branch from d4b7b25 to 2be2bdb Compare May 26, 2023 15:19
@oleg-jukovec oleg-jukovec marked this pull request as ready for review May 26, 2023 15:51
@oleg-jukovec oleg-jukovec requested review from GRISHNOV and removed request for AnaNek May 29, 2023 13:14
@oleg-jukovec oleg-jukovec merged commit 897ba41 into master May 29, 2023
@oleg-jukovec oleg-jukovec deleted the oleg-jukovec/gh-257-graceful-close branch May 29, 2023 14:38
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.

Graceful shutdown from a client side
3 participants