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
Is your feature request related to a problem? Please describe.
Connections pool may uncontrollably grow if client connects to many different hosts. There is a related issue in reqwest: seanmonstar/reqwest#2424
Describe the solution you'd like
I can see a few options here:
Replace idle: HashMap<Key, Vec<Idle>> by LruCache<Key, Vec<Idle>> in PoolInner
Replace idle: HashMap<Key, Vec<Idle>> by LruCache<Key, Idle> in PoolInner
Describe alternatives you've considered
Maybe this problem shouldn't be solved at hyper-util's level and users of the library (or reqwest) should create separate clients for each host (or set of hosts).
Additional context
I'm happy to submit a PR for the issue if the feature would be considered as useful. I already implemented the change in my fork but I'm ok to update it or implement another solution.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Connections pool may uncontrollably grow if client connects to many different hosts. There is a related issue in reqwest: seanmonstar/reqwest#2424
Describe the solution you'd like
I can see a few options here:
idle: HashMap<Key, Vec<Idle>>
byLruCache<Key, Vec<Idle>>
inPoolInner
idle: HashMap<Key, Vec<Idle>>
by LruCache<Key, Idle> inPoolInner
Describe alternatives you've considered
Maybe this problem shouldn't be solved at hyper-util's level and users of the library (or reqwest) should create separate clients for each host (or set of hosts).
Additional context
I'm happy to submit a PR for the issue if the feature would be considered as useful. I already implemented the change in my fork but I'm ok to update it or implement another solution.
The text was updated successfully, but these errors were encountered: