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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -