java - setConnectTimeout vs. setConnectionTimeToLive vs. setSocketTimeout() -


can please explain difference between these two:

client = httpclientbuilder.create()     .setconnectiontimetolive(1, timeunit.minutes)     .build(); 

and

requestconfig requestconfig = requestconfig.custom().setconnecttimeout(30 * 1000).build(); client = httpclientbuilder     .create()     .setdefaultrequestconfig(requestconfig)     .build(); 

is better use setsockettimeout?


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -