Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1022)

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 9764003: Increase number of max sockets per group for WebSocket connections. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync. Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | net/http/http_network_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index 70e791fc7305e323fbf5d026da21c3bcc5f6e650..cb1c8bff682622bdad58ccd96ec9736278e456ab 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -658,19 +658,22 @@ void ChromeBrowserMainParts::ConnectionFieldTrial() {
const int connect_trial_group = connect_trial->group();
+ int max_sockets = 0;
if (connect_trial_group == connect_5) {
- net::ClientSocketPoolManager::set_max_sockets_per_group(5);
+ max_sockets = 5;
} else if (connect_trial_group == connect_6) {
- net::ClientSocketPoolManager::set_max_sockets_per_group(6);
+ max_sockets = 6;
} else if (connect_trial_group == connect_7) {
- net::ClientSocketPoolManager::set_max_sockets_per_group(7);
+ max_sockets = 7;
} else if (connect_trial_group == connect_8) {
- net::ClientSocketPoolManager::set_max_sockets_per_group(8);
+ max_sockets = 8;
} else if (connect_trial_group == connect_9) {
- net::ClientSocketPoolManager::set_max_sockets_per_group(9);
+ max_sockets = 9;
} else {
NOTREACHED();
}
+ net::ClientSocketPoolManager::set_max_sockets_per_group(
+ net::HttpNetworkSession::NORMAL_SOCKET_POOL, max_sockets);
}
// A/B test for determining a value for unused socket timeout. Currently the
@@ -743,15 +746,18 @@ void ChromeBrowserMainParts::ProxyConnectionsFieldTrial() {
const int proxy_connections_trial_group = proxy_connection_trial->group();
+ int max_sockets = 0;
if (proxy_connections_trial_group == proxy_connections_16) {
- net::ClientSocketPoolManager::set_max_sockets_per_proxy_server(16);
+ max_sockets = 16;
} else if (proxy_connections_trial_group == proxy_connections_32) {
- net::ClientSocketPoolManager::set_max_sockets_per_proxy_server(32);
+ max_sockets = 32;
} else if (proxy_connections_trial_group == proxy_connections_64) {
- net::ClientSocketPoolManager::set_max_sockets_per_proxy_server(64);
+ max_sockets = 64;
} else {
NOTREACHED();
}
+ net::ClientSocketPoolManager::set_max_sockets_per_proxy_server(
+ net::HttpNetworkSession::NORMAL_SOCKET_POOL, max_sockets);
}
// When --use-spdy not set, users will be in A/B test for spdy.
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | net/http/http_network_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698