You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Connection TTL can be effected either in bulk by calling
`connMgr.closeExpired()` or at connection reuse time by configuring a
`timeToLive` on the `ConnectionConfig`. Strangely, idle timeouts can
only be effected in bulk via `connMgr.closeIdle()`, or with an
`IdleConnectionEvictor`; they have no corresponding `ConnectionConfig`
setting. This change resolves this inconsistency. The result is that
idle timeouts are much easier to configure and enforce: they don't
require spinning up a background thread that periodically locks the
entire conn pool and closes idle connections; there is no longer the
possibility of reusing a connection after it hits its intended idle
timeout; and it doesn't matter whether the connection pool is shared.
0 commit comments