Skip to content

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