Skip to content

Commit

Permalink
Merged branch 'jetty-10.0.x' into 'jetty-11.0.x'.
Browse files Browse the repository at this point in the history
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
  • Loading branch information
sbordet committed Jul 28, 2022
2 parents 6f1ee73 + 4a6c274 commit 73609a0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/codeql-analysis.yml
Expand Up @@ -66,6 +66,11 @@ jobs:

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

- name: Set up Maven
uses: stCarolas/setup-maven@v4
with:
maven-version: 3.8.6

- name: Clean install dependencies and build
run: mvn clean install -DskipTests
Expand Down
Expand Up @@ -132,7 +132,10 @@ protected ConnectionPool newConnectionPool(HttpClient client)

protected Queue<HttpExchange> newExchangeQueue(HttpClient client)
{
return new BlockingArrayQueue<>(client.getMaxRequestsQueuedPerDestination());
int maxCapacity = client.getMaxRequestsQueuedPerDestination();
if (maxCapacity > 32)
return new BlockingArrayQueue<>(32, 32, maxCapacity);
return new BlockingArrayQueue<>(maxCapacity);
}

protected ClientConnectionFactory newSslClientConnectionFactory(SslContextFactory.Client sslContextFactory, ClientConnectionFactory connectionFactory)
Expand Down

0 comments on commit 73609a0

Please sign in to comment.