apache - Pooling CloseableHttpClient without caching -
i used singletone configuration manage pooled http client
public closeablehttpclient getcloseablehttpclient() { poolinghttpclientconnectionmanager cm = new poolinghttpclientconnectionmanager(); cm.setmaxtotal(100); cm.setdefaultmaxperroute(20); requestconfig globalconfig = requestconfig.custom() .setcookiespec(cookiespecs.ignore_cookies) .build(); return httpclients.custom() .setconnectionmanager(cm) .setdefaultrequestconfig(globalconfig) .build(); }
the problem uses cookies.
can switch off ones?
if i'm using client second time same url, has cookiestore nonempty cookie elements.
Comments
Post a Comment