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

Auto close idle connections in native protocol in respect of ConnMaxLifetime option #999

Merged
merged 1 commit into from
May 17, 2023

Conversation

jkaflik
Copy link
Contributor

@jkaflik jkaflik commented May 16, 2023

Summary

Currently, idle connections are not automatically closed until used again for the query.
This PR introduces a watchdog that goes over available idle connections and closes expired ones.

resolves #940 #957

Checklist

Delete items not relevant to your PR:

  • Unit and integration tests covering the common scenarios were added
  • A human-readable description of the changes was provided to include in CHANGELOG

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

Successfully merging this pull request may close these issues.

clickhouse.idle does not honour ConnMaxLifetime ?
1 participant