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

Implement Connection Lifetime #212

Closed
bgrainger opened this issue Mar 30, 2017 · 1 comment
Closed

Implement Connection Lifetime #212

bgrainger opened this issue Mar 30, 2017 · 1 comment

Comments

@bgrainger
Copy link
Member

bgrainger commented Mar 30, 2017

Official description:

When a connection is returned to the pool, its creation time is compared with the current time, and the connection is destroyed if that time span (in seconds) exceeds the value specified by Connection Lifetime. This is useful in clustered configurations to force load balancing between a running server and a server just brought online. A value of zero (0) causes pooled connections to have the maximum connection timeout.

This appears to enforce a maximum lifetime on any individual connection that is created. It's not clear to me (from the documentation) if some kind of watchdog is proactively cleaning up old connections in the pool, or if this only applies strictly to when a connection is returned.

caleblloyd added a commit to caleblloyd/MySqlConnector that referenced this issue Apr 6, 2017
caleblloyd added a commit to caleblloyd/MySqlConnector that referenced this issue Apr 6, 2017
caleblloyd added a commit to caleblloyd/MySqlConnector that referenced this issue Apr 6, 2017
caleblloyd added a commit to caleblloyd/MySqlConnector that referenced this issue Apr 6, 2017
caleblloyd added a commit to caleblloyd/MySqlConnector that referenced this issue Apr 6, 2017
@bgrainger
Copy link
Member Author

bgrainger commented Apr 12, 2017

Shipped in 0.17.0.

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

No branches or pull requests

1 participant