On Fri, 2014-03-14 at 01:29 +0100, Joan Balagueró wrote:
> Hello,
> 
>  
> 
> Migration from 4.1 to 4.3 is finished. Just some questions about certain
> parameters:
> 
>  
> 
> 1.       For performance, is it recommended to set true to ‘setTcpNoDelay’
> and false to ‘setStaleConnectionCheckEnabled’? I tried several combinations
> in my stress tests and I don’t see any significance difference.
> 
>  

In my experience TCP_NO_DELAY makes a massive impact on performance in
therms of data throughput. But it might depend on what exactly you are
trying to measure.

> 
> 2.       What does the “RequestConfig.custom().setAuthenticationEnabled()”
> refers to?
> 

http://hc.apache.org/httpcomponents-client-4.3.x/httpclient/apidocs/org/apache/http/client/config/RequestConfig.html

>  
> 
> 3.       And HttpClients.custom().disableAuthCaching() and
> disableConnectionState()?
> 
>  

http://hc.apache.org/httpcomponents-client-4.3.x/httpclient/apidocs/org/apache/http/impl/client/HttpClientBuilder.html
http://hc.apache.org/httpcomponents-client-4.3.x/tutorial/html/authentication.html#d5e701
http://hc.apache.org/httpcomponents-client-4.3.x/tutorial/html/advanced.html#stateful_conn


> 
> 4.       The HttpClients.custom().disableCookieManagement() is equivalent to
> “objHttp.removeRequestInterceptorByClass(RequestAddCookies.class);this.objHt
> tp.removeResponseInterceptorByClass(ResponseProcessCookies.class);” in 4.1.?
> 
>  

Pretty much.

Oleg



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to