When creating CloseableHttpClient in Apache HttpClient 4.3 I can use
SocketConfig.custom().setSoTimeout(soTimeout).build()
and send it to the setDefaultSocketConfig() method of my connection manager.
I can also use
RequestConfig.custom().setSocketTimeout(socketTimeout).build()
and send it to the setDefaultRequestConfig() method of my http client client.
Will they have the same end effect or different end effects?
source share