diff options
author | Bjørn Christian Seime <bjorncs@yahooinc.com> | 2023-07-06 16:37:06 +0200 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@yahooinc.com> | 2023-07-06 16:37:06 +0200 |
commit | 987daa580a155e2f1ff7eb4be21e60e620d2886d (patch) | |
tree | 19c52e825abe9403158717c82f7569ab1512c05c /vespa-feed-client | |
parent | c09d214ecead2941928e8591674da87e387c3f3d (diff) |
Don't store cookies
Diffstat (limited to 'vespa-feed-client')
-rw-r--r-- | vespa-feed-client/src/main/java/ai/vespa/feed/client/impl/JettyCluster.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vespa-feed-client/src/main/java/ai/vespa/feed/client/impl/JettyCluster.java b/vespa-feed-client/src/main/java/ai/vespa/feed/client/impl/JettyCluster.java index 48b34c02672..9b2b91699ac 100644 --- a/vespa-feed-client/src/main/java/ai/vespa/feed/client/impl/JettyCluster.java +++ b/vespa-feed-client/src/main/java/ai/vespa/feed/client/impl/JettyCluster.java @@ -18,6 +18,7 @@ import org.eclipse.jetty.http2.client.HTTP2Client; import org.eclipse.jetty.http2.client.http.HttpClientTransportOverHTTP2; import org.eclipse.jetty.io.ClientConnector; import org.eclipse.jetty.util.Callback; +import org.eclipse.jetty.util.HttpCookieStore; import org.eclipse.jetty.util.Promise; import org.eclipse.jetty.util.SocketAddressResolver; import org.eclipse.jetty.util.component.AbstractLifeCycle; @@ -121,6 +122,7 @@ class JettyCluster implements Cluster { httpClient.setConnectTimeout(Duration.ofSeconds(10).toMillis()); // Stop client from trying different IP address when TLS handshake fails httpClient.setSocketAddressResolver(new Ipv4PreferringResolver(httpClient, Duration.ofSeconds(10))); + httpClient.setCookieStore(new HttpCookieStore.Empty()); httpClient.setIdleTimeout(IDLE_TIMEOUT.toMillis()); try { |