Bug 1605096 - Make sure that in all cases we only make one QUIC connection. r=kershaw

Differential Revision: https://phabricator.services.mozilla.com/D57792
This commit is contained in:
Dragana Damjanovic
2019-12-19 14:45:57 +00:00
parent c9ee19c643
commit e5a4823c14

View File

@@ -1241,6 +1241,11 @@ bool nsHttpConnectionMgr::AtActiveConnectionLimit(nsConnectionEntry* ent,
uint32_t caps) {
nsHttpConnectionInfo* ci = ent->mConnInfo;
uint32_t totalCount = TotalActiveConnections(ent);
if (ci->IsHttp3()) {
return totalCount > 0;
}
uint32_t maxPersistConns = MaxPersistConnections(ent);
LOG(