As I am planning to upgrade httpclient dependency from v.3.1 to v.4.5.13, but later I realized that, lot of functionalities have been changed and one among them is that, MultiThreadedHttpConnectionManager has been removed from recent version. While I was searching for an equivalent class, one of the posts in stackoverflow HttpClient 4 - What happened to MultiThreadedHttpConnectionManager?, suggested to use PoolingHttpClientConnectionManager class. But, I wanted to set connection timeout and socket timeout, where these functionalities are not provided by PoolingHttpClientConnectionManager.
final MultiThreadedHttpConnectionManager connectionManager = new MultiThreadedHttpConnectionManager();
connectionManager.setMaxTotalConnections(150);
connectionManager.setMaxConnectionsPerHost(90);
connectionManager.setConnectionTimeout(15000);
connectionManager.setSoTimeout(600000);
Can anyone suggest, how connection timeout and socket timeout can be set in recent httpclient v.4.5.x?