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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to