Open rueian opened 4 weeks ago
Hi @rueian, I'm interested in working on this issue!
I am interested in working on this issue.
@rueian Does need option to min size of connection pool? making a new connection is expensive. If all connections is closed, can be harmful to latency sensitive apps. current pool only support cap size.
@rueian Does need option to min size of connection pool? making a new connection is expensive. If all connections is closed, can be harmful to latency sensitive apps. current pool only support cap size.
Yes, there should be an option for that.
Currently connections in the connection pools (
spool
anddpool
) inside amux
will live forever.It would be nice if we had an option, such as
ConnIdleDuration
or a better naming, to clean connections that are idle for a long time to reduce memory usage.