Skip to content

Commit

Permalink
Attempt to fix something 4
Browse files Browse the repository at this point in the history
  • Loading branch information
nck-mlcnv committed Jul 5, 2024
1 parent f910cec commit 858fc80
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public static void initHttpClient(int threadCount) {
.setMaxConnTotal(threadCount * 1000)
.setMaxConnPerRoute(threadCount * 1000)
.setPoolConcurrencyPolicy(PoolConcurrencyPolicy.LAX)
.setConnPoolPolicy(PoolReusePolicy.LIFO)
.setConnPoolPolicy(PoolReusePolicy.FIFO)
.setDefaultConnectionConfig(org.apache.hc.client5.http.config.ConnectionConfig.custom()
.setConnectTimeout(Timeout.ofSeconds(5))
.setValidateAfterInactivity(TimeValue.ofSeconds(5))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,14 @@ public class SPARQLProtocolWorkerTest {

@RegisterExtension
public static WireMockExtension wm = WireMockExtension.newInstance()
.options(new WireMockConfiguration().useChunkedTransferEncoding(Options.ChunkedEncodingPolicy.NEVER).dynamicPort().notifier(new ConsoleNotifier(false)))
.options(new WireMockConfiguration()
.useChunkedTransferEncoding(Options.ChunkedEncodingPolicy.NEVER)
.dynamicPort()
.notifier(new ConsoleNotifier(false))
.containerThreads(10)
.asynchronousResponseEnabled(true)
.asynchronousResponseThreads(10)
.timeout(10000))
.failOnUnmatchedRequests(true)
.build();

Expand Down Expand Up @@ -228,7 +235,7 @@ public void testCompletionTargets(HttpWorker.CompletionTarget target) throws URI
queryHandler,
target,
connection,
Duration.parse("PT20S"),
Duration.parse("PT360S"),
"application/sparql-results+json",
RequestFactory.RequestType.POST_URL_ENC_QUERY,
false
Expand Down

0 comments on commit 858fc80

Please sign in to comment.