-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
Description
In
async-http-client/client/src/main/java/org/asynchttpclient/cookie/ThreadSafeCookieStore.java
Line 160 in 365c1e6
| List<Cookie> result = cookieJar.entrySet().stream().filter(pair -> { |
In our project we had to disable the cookie store, i.e.
new DefaultAsyncHttpClientConfig.Builder() .setCookieStore(null) ... .build()
Maybe you could rewrite the function using another data structure that facilitates the look up for candidate cookies and then make a lazy removal of the expired candidates, or remove expired cookies asynchronously and periodically.