Skip to content

Commit

Permalink
Fixes #5888 - Limit usage of HTTP/2 connections.
Browse files Browse the repository at this point in the history
* Fixed maxUsage check in AbstractConnectionPool.

Signed-off-by: Simone Bordet <[email protected]>
  • Loading branch information
sbordet committed Oct 28, 2024
1 parent 446cae3 commit 946bcb3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ protected Connection activate()

int maxUsage = getMaxUsage();
if (connection instanceof MaxUsable maxUsable)
maxUsage = maxUsable.getMaxUsage();
maxUsage = Math.min(maxUsage, maxUsable.getMaxUsage());
if (maxUsage > 0)
{
EntryHolder holder = (EntryHolder)((Attachable)connection).getAttachment();
Expand Down

0 comments on commit 946bcb3

Please sign in to comment.