You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "arturobernalg (via GitHub)" <gi...@apache.org> on 2026/10/03 15:29:43 UTC

[PR] Reclaim idle connections across routes in RouteSegmentedConnPool [httpcomponents-core]

arturobernalg opened a new pull request, #722:
URL: https://github.com/apache/httpcomponents-core/pull/722

   `RouteSegmentedConnPool` currently stops allocating when the global limit is reached, even if another route holds an idle reusable entry.
   
   This change allows the pool to reclaim an idle entry from another route and transfer the global allocation slot to the requesting route.
   
   The hot path remains route-local. Cross-route reclamation is only attempted when normal allocation cannot proceed because `maxTotal` has been reached.
   
   It also ensures pending routes are retried when global capacity becomes available, while avoiding unnecessary drain activity for routes already at their per-route limit.
   
   Benchmarks show no regression on the hot path and improved throughput for the full-pool cross-route case.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: [PR] Reclaim idle connections across routes in RouteSegmentedConnPool [httpcomponents-core]

Posted by "arturobernalg (via GitHub)" <gi...@apache.org>.
arturobernalg merged PR #722:
URL: https://github.com/apache/httpcomponents-core/pull/722


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org