Merge m-c to inbound

This commit is contained in:
Ryan VanderMeulen 2012-05-15 19:24:50 -04:00
commit d0d422a19f
2 changed files with 2 additions and 1 deletions

View File

@ -165,6 +165,7 @@ public:
void EndIdleMonitoring();
bool UsingSpdy() { return mUsingSpdy; }
bool EverUsedSpdy() { return mEverUsedSpdy; }
// true when connection SSL NPN phase is complete and we know
// authoritatively whether UsingSpdy() or not.

View File

@ -1212,7 +1212,7 @@ nsHttpConnectionMgr::RestrictConnections(nsConnectionEntry *ent)
bool confirmedRestrict = false;
for (PRUint32 index = 0; index < ent->mActiveConns.Length(); ++index) {
nsHttpConnection *conn = ent->mActiveConns[index];
if (!conn->ReportedNPN() || conn->CanDirectlyActivate()) {
if (!conn->ReportedNPN() || conn->EverUsedSpdy()) {
confirmedRestrict = true;
break;
}