Bug 833178 - Increase Stream Transport thread pool max threads. r=bsmith
authorDoug Turner <dougt@dougt.org>
Tue, 22 Jan 2013 21:26:00 -0800 (2013-01-23)
changeset 119574 85c0b62240651f3ce61e59dce7fd370f08bed1e7
parent 119573 b2db97deeb35a0377d91ce6c417663db7471ed83
child 119575 8762543c77fa3e383c07b05964fd21905e85d079
push id24208
push userryanvm@gmail.com
push dateWed, 23 Jan 2013 16:13:14 +0000 (2013-01-23)
treeherdermozilla-central@35e0c12f4332 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmith
bugs833178
milestone21.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 833178 - Increase Stream Transport thread pool max threads. r=bsmith
netwerk/base/src/nsStreamTransportService.cpp
--- a/netwerk/base/src/nsStreamTransportService.cpp
+++ b/netwerk/base/src/nsStreamTransportService.cpp
@@ -437,20 +437,20 @@ nsStreamTransportService::~nsStreamTrans
 
 nsresult
 nsStreamTransportService::Init()
 {
     mPool = do_CreateInstance(NS_THREADPOOL_CONTRACTID);
     NS_ENSURE_STATE(mPool);
 
     // Configure the pool
-    mPool->SetThreadLimit(4);
+    mPool->SetName(NS_LITERAL_CSTRING("StreamTrans"));
+    mPool->SetThreadLimit(25);
     mPool->SetIdleThreadLimit(1);
-    mPool->SetIdleThreadTimeout(PR_SecondsToInterval(60));
-    mPool->SetName(NS_LITERAL_CSTRING("StreamTrans"));
+    mPool->SetIdleThreadTimeout(PR_SecondsToInterval(30));
 
     nsCOMPtr<nsIObserverService> obsSvc =
         mozilla::services::GetObserverService();
     if (obsSvc)
         obsSvc->AddObserver(this, "xpcom-shutdown-threads", false);
     return NS_OK;
 }