bug 751647 - speculative connect needs to check spdy ip pooling table r=honzab

This commit is contained in:
Patrick McManus 2012-05-07 09:43:46 -04:00
Родитель a90d93dc83
Коммит 16e4572d23
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -2273,6 +2273,13 @@ nsHttpConnectionMgr::OnMsgSpeculativeConnect(PRInt32, void *param)
nsConnectionEntry *ent =
GetOrCreateConnectionEntry(trans->ConnectionInfo());
// If spdy has previously made a preferred entry for this host via
// the ip pooling rules. If so, connect to the preferred host instead of
// the one directly passed in here.
nsConnectionEntry *preferredEntry = GetSpdyPreferredEnt(ent);
if (preferredEntry)
ent = preferredEntry;
if (!ent->mIdleConns.Length() && !RestrictConnections(ent) &&
!AtActiveConnectionLimit(ent, trans->Caps())) {
CreateTransport(ent, trans, trans->Caps(), true);