Bug 755467 SpdySession::RestrictConnections() should use conn->EverUsedSpdy() r=honzab

This commit is contained in:
Patrick McManus 2012-05-15 16:31:29 -04:00
parent ec08589480
commit 4e71c1624c
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;
}