From ee27782e07fef6160a48084255bcc0fff59345bb Mon Sep 17 00:00:00 2001 From: Andrew Creskey Date: Fri, 14 Jun 2019 14:13:32 -0400 Subject: [PATCH] Bug 1547997 Increase android max connections from 20 to 40 r=mayhemer The Android preferences limit network.http.max-connections to 20 (set ~7 years ago). See https://searchfox.org/mozilla-central/rev/f8b11433159cbc9cc80500b3e579d767473fa539/mobile/android/app/mobile.js#102 By removing this preference the android builds will use the all.js android preference, now set to 40. Differential Revision: https://phabricator.services.mozilla.com/D29368 --HG-- extra : rebase_source : 3c1f9749b549119329973dda6c5c3e48e79e911e --- mobile/android/app/mobile.js | 1 - modules/libpref/init/all.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/mobile/android/app/mobile.js b/mobile/android/app/mobile.js index 1b5ffe044a64..eaa10275baf9 100644 --- a/mobile/android/app/mobile.js +++ b/mobile/android/app/mobile.js @@ -98,7 +98,6 @@ pref("network.protocol-handler.warn-external.vnd.youtube", false); /* http prefs */ pref("network.http.keep-alive.timeout", 109); -pref("network.http.max-connections", 20); pref("network.http.max-persistent-connections-per-server", 6); pref("network.http.max-persistent-connections-per-proxy", 20); diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index 79e4d9940b15..f52d7b975815 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -1549,7 +1549,7 @@ pref("network.http.response.timeout", 300); // Note: the socket transport service will clamp the number below this if the OS // cannot allocate that many FDs #ifdef ANDROID -pref("network.http.max-connections", 256); +pref("network.http.max-connections", 40); #else pref("network.http.max-connections", 900); #endif