Skip to content

Commit 4608337

Browse files
Trying to fix connection pooling
1 parent 058c1e7 commit 4608337

File tree

1 file changed

+1
-0
lines changed
  • x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/external/http

1 file changed

+1
-0
lines changed

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/external/http/HttpClient.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ private static CloseableHttpAsyncClient createAsyncClient(
7171
// The apache client will be shared across all connections because it can be expensive to create it
7272
// so we don't want to support cookies to avoid accidental authentication for unauthorized users
7373
clientBuilder.disableCookieManagement();
74+
clientBuilder.disableConnectionState();
7475

7576
/*
7677
By default, if a keep-alive header is not returned by the server then the connection will be kept alive

0 commit comments

Comments
 (0)