client.setTimeout(5000);
client.setConnectionTimeout(5000);
client.setHttpConnectionFactoryTimeout(5000);
final MultiThreadedHttpConnectionManager manager =
(MultiThreadedHttpConnectionManager)client.getHttpConnectionManager();
manager.setMaxConnectionsPerHost(10);
manager.setMaxTotalConnections(20);
method.releaseConnection();
MultiThreadedHttpConnectionManager connectionManager = new MultiThreadedHttpConnectionManager();
HttpClient client = new HttpClient(connectionManager);