r2dbc / r2dbc-pool

Connection Pooling for Reactive Relational Database Connectivity
https://r2dbc.io
Apache License 2.0
331 stars 55 forks source link

Connections are reused in LRU order and therefore not idle #166

Closed patriknw closed 2 years ago

patriknw commented 2 years ago

Bug Report

Versions

Current Behavior

Idle connections are not evicted after maxIdleTime.

Steps to reproduce

Expected behavior/code

Evict idle (unused) connections when low demand of connections.

Possible Solution

Reactor pool is using LRU reuse by default. That means that all connections in the pool are touched and never become idle.

Change to MRU.