Merge remote-tracking branch 'origin/jetty-10.0.x' into jetty-11.0.x

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
This commit is contained in:
Ludovic Orban 2021-06-29 10:23:18 +02:00
commit 4d2648ae4f
1 changed files with 1 additions and 0 deletions

View File

@ -568,6 +568,7 @@ public class ConnectionPoolTest
{
AbstractConnectionPool connectionPool = (AbstractConnectionPool)factory.factory.newConnectionPool(destination);
connectionPool.setMaxUsageCount(maxUsageCount);
connectionPool.setMaxDuration(0); // Disable max duration expiry as it may expire the connection between the 1st and 2nd request.
return connectionPool;
});
client.setMaxConnectionsPerDestination(1);