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

Allow Node to exit if the pool is idle #2568

Merged
merged 1 commit into from Jul 27, 2021
Merged

Allow Node to exit if the pool is idle #2568

merged 1 commit into from Jul 27, 2021

Commits on Jul 17, 2021

  1. Allow Node to exit if the pool is idle

    Based on the suggestion from #2078. This adds ref/unref methods to the
    Connection and Client classes and then uses them to allow the process to
    exit if all of the connections in the pool are idle. This behavior is
    controlled by the allowExitOnIdle flag to the Pool constructor; it defaults
    to the old behavior.
    Brian Crowell committed Jul 17, 2021
    Copy the full SHA
    5646453 View commit details
    Browse the repository at this point in the history