зеркало из https://github.com/mozilla/gecko-dev.git
Bug 755467 SpdySession::RestrictConnections() should use conn->EverUsedSpdy() r=honzab
This commit is contained in:
Родитель
ec08589480
Коммит
4e71c1624c
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче