Skip to content

Commit

Permalink
KTOR-6221: Fix reduced concurrent reqs in Apache5 (#3738)
Browse files Browse the repository at this point in the history
When using the Apache5 engine, total concurrent requests to a single
route were limited to 5 requests. This is due to the code which tried to
increase the concurrency to the ktor-standard 1000 concurrent having a
typo and setting the total max connections twice and missing the max
connections
completely.
  • Loading branch information
Sebmaster authored Sep 1, 2023
1 parent 67e4f4e commit fa5cba1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ internal class Apache5Engine(override val config: Apache5EngineConfig) : HttpCli
setConnectionManager(
PoolingAsyncClientConnectionManagerBuilder.create()
.setMaxConnTotal(MAX_CONNECTIONS_COUNT)
.setMaxConnTotal(MAX_CONNECTIONS_COUNT)
.setMaxConnPerRoute(MAX_CONNECTIONS_COUNT)
.setTlsStrategy(
ClientTlsStrategyBuilder.create()
.setSslContext(config.sslContext ?: SSLContexts.createSystemDefault())
Expand Down

0 comments on commit fa5cba1

Please sign in to comment.