Backend Pooled Connection Lifetime

I’m not able to find a configuration that closes or abandons backend connections after a specific period of time.

I’m seeking a configuration that aggressively reuses backend connections but only keep idle connections for a period, say 30 seconds, before closing and discarding them.

I’m using http-reuse for the former. I haven’t arrived at a suitable config for the latter.

I’m using HAProxy version 2.3.2.