From: <mgu...@us...> - 2013-01-07 11:39:26
|
Revision: 7941 http://sourceforge.net/p/htmlunit/code/7941 Author: mguillem Date: 2013-01-07 11:39:23 +0000 (Mon, 07 Jan 2013) Log Message: ----------- Set max number of simultaneous connections per server to 6. Modified Paths: -------------- trunk/htmlunit/src/changes/changes.xml trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/HttpWebConnection.java Modified: trunk/htmlunit/src/changes/changes.xml =================================================================== --- trunk/htmlunit/src/changes/changes.xml 2013-01-07 11:32:36 UTC (rev 7940) +++ trunk/htmlunit/src/changes/changes.xml 2013-01-07 11:39:23 UTC (rev 7941) @@ -8,6 +8,9 @@ <body> <release version="2.12" date="???" description="Bugfixes, CSS3 Selectors"> + <action type="update" dev="mguillem"> + Set max number of simultaneous connections per server to 6. + </action> <action type="fix" dev="asashour" issue="1471"> Handle pages with "application/javascript" content type as JavaScriptPage. </action> Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/HttpWebConnection.java =================================================================== --- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/HttpWebConnection.java 2013-01-07 11:32:36 UTC (rev 7940) +++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/HttpWebConnection.java 2013-01-07 11:39:23 UTC (rev 7941) @@ -556,6 +556,7 @@ final PoolingClientConnectionManager connectionManager = new PoolingClientConnectionManager(schemeRegistry); + connectionManager.setDefaultMaxPerRoute(6); final DefaultHttpClient httpClient = new DefaultHttpClient(connectionManager, httpParams); httpClient.setCookieStore(new HtmlUnitCookieStore(webClient_.getCookieManager())); |