forked from mirrors/gecko-dev
Bug 1895535 - Disable fast fastback and connection coalescing for WebTransport, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D209729
This commit is contained in:
parent
181ce7b96a
commit
34740ba1c9
2 changed files with 8 additions and 1 deletions
|
|
@ -808,6 +808,11 @@ HttpConnectionBase* nsHttpConnectionMgr::FindCoalescableConnection(
|
|||
MOZ_ASSERT(ent->mConnInfo);
|
||||
nsHttpConnectionInfo* ci = ent->mConnInfo;
|
||||
LOG(("FindCoalescableConnection %s\n", ci->HashKey().get()));
|
||||
|
||||
if (ci->GetWebTransport()) {
|
||||
LOG(("Don't coalesce a WebTransport conn "));
|
||||
return nullptr;
|
||||
}
|
||||
// First try and look it up by origin frame
|
||||
nsCString newKey;
|
||||
BuildOriginFrameHashKey(newKey, ci, ci->GetOrigin(), ci->OriginPort());
|
||||
|
|
|
|||
|
|
@ -3295,7 +3295,9 @@ nsresult nsHttpTransaction::OnHTTPSRRAvailable(
|
|||
|
||||
RefPtr<nsHttpConnectionInfo> newInfo =
|
||||
mConnInfo->CloneAndAdoptHTTPSSVCRecord(svcbRecord);
|
||||
bool needFastFallback = newInfo->IsHttp3();
|
||||
// Don't fallback until we support WebTransport over HTTP/2.
|
||||
// TODO: implement fallback in bug 1874102.
|
||||
bool needFastFallback = newInfo->IsHttp3() && !newInfo->GetWebTransport();
|
||||
bool foundInPendingQ = gHttpHandler->ConnMgr()->RemoveTransFromConnEntry(
|
||||
this, mHashKeyOfConnectionEntry);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue