Skip to content

Max lifetime 4.x #1318

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 2 commits into from
Apr 24, 2023
Merged

Max lifetime 4.x #1318

merged 2 commits into from
Apr 24, 2023

Conversation

kdubb
Copy link
Contributor

@kdubb kdubb commented Apr 23, 2023

Backport of #1298 to 4.x branch

Adds maxLifetime to PoolOptions and alters PooledConnection to honor the maximum lifetime as well as the idle timeout.

Motivation:

A maxLifetime option has been added to PoolOptions that determines the maximum amount of time a connection will stay connected; after this amount of time it will be closed at the next eviction check.

The "expiration" naming was changed to "eviction" to represent the more general check that is performed. The idle timeout refreshing was also change to start immediately after connection and update accordingly to make the idle timeout more predictable and match the max life time check.

Conformance:

You should have signed the Eclipse Contributor Agreement as explained in https://github.com/eclipse/vert.x/blob/master/CONTRIBUTING.md
Please also make sure you adhere to the code style guidelines: https://github.com/vert-x3/wiki/wiki/Vert.x-code-style-guidelines

kdubb added 2 commits April 23, 2023 16:22
Adds `maxLifetime` to `PoolOptions` and alters `PooledConnection` to honor the maximum lifetime as well as the idle timeout.
@vietj vietj added this to the 4.4.2 milestone Apr 24, 2023
@vietj vietj merged commit e2c4587 into eclipse-vertx:4.x Apr 24, 2023
@kdubb kdubb deleted the max-lifetime-4.x branch July 25, 2023 03:31
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.

2 participants