New experimental davmail.exchange.maxConnections setting to limit concurrent connections to Exchange server

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2227 3d1905a2-6b24-0410-a738-b14d5a86fcbd
master
mguessan 2014-02-03 21:42:26 +00:00
parent 328ad805a8
commit 892f277b97
1 changed files with 1 additions and 1 deletions

View File

@ -790,7 +790,7 @@ public final class DavGatewayHttpClientFacade {
*/
public static void createMultiThreadedHttpConnectionManager(HttpClient httpClient) {
MultiThreadedHttpConnectionManager connectionManager = new MultiThreadedHttpConnectionManager();
connectionManager.getParams().setDefaultMaxConnectionsPerHost(100);
connectionManager.getParams().setDefaultMaxConnectionsPerHost(Settings.getIntProperty("davmail.exchange.maxConnections",100));
connectionManager.getParams().setConnectionTimeout(10000);
connectionManager.getParams().setSoTimeout(120000);
synchronized (LOCK) {