mobc icon indicating copy to clipboard operation
mobc copied to clipboard

max lifetime does not work

Open aohanhongzhi opened this issue 1 year ago • 2 comments

image

image

image

aohanhongzhi avatar May 11 '24 07:05 aohanhongzhi

Unfortunately, it looks like the connections in the pool are only reaped lazily when getting connections from the pool, so it means that max_lifetime may be exceeded: https://github.com/importcjj/mobc/blob/main/src/lib.rs#L519

Blitz2145 avatar Jun 12 '24 21:06 Blitz2145

I'm happy to accept a PR on this.

garrensmith avatar Jul 11 '24 09:07 garrensmith