mirror of
https://github.com/moparisthebest/davmail
synced 2025-03-05 11:49:46 -05:00
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
This commit is contained in:
parent
328ad805a8
commit
892f277b97
@ -790,7 +790,7 @@ public final class DavGatewayHttpClientFacade {
|
|||||||
*/
|
*/
|
||||||
public static void createMultiThreadedHttpConnectionManager(HttpClient httpClient) {
|
public static void createMultiThreadedHttpConnectionManager(HttpClient httpClient) {
|
||||||
MultiThreadedHttpConnectionManager connectionManager = new MultiThreadedHttpConnectionManager();
|
MultiThreadedHttpConnectionManager connectionManager = new MultiThreadedHttpConnectionManager();
|
||||||
connectionManager.getParams().setDefaultMaxConnectionsPerHost(100);
|
connectionManager.getParams().setDefaultMaxConnectionsPerHost(Settings.getIntProperty("davmail.exchange.maxConnections",100));
|
||||||
connectionManager.getParams().setConnectionTimeout(10000);
|
connectionManager.getParams().setConnectionTimeout(10000);
|
||||||
connectionManager.getParams().setSoTimeout(120000);
|
connectionManager.getParams().setSoTimeout(120000);
|
||||||
synchronized (LOCK) {
|
synchronized (LOCK) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user