Closed Bug 2072267 Opened 2 months ago Closed 2 months ago

Don't evict the TRR connection when the global connection limit is hit

Categories

(Core :: Networking: HTTP, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: acreskey, Assigned: valentin)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [necko-triaged][necko-priority-next])

Attachments

(1 external file)

When MakeNewConnection finds the global connection cap reached, it closes idle connections on other hosts and then calls MakeFirstActiveSpdyConnDontReuse on every connection entry, sending GOAWAY on active H2 sessions to make room. The TRR connection entry is not skipped.

On Android (cap 128) busy news pages hit this continuously, and the DoH connection gets evicted along with the ad-host sessions. Rebuilding it takes about 1s and all pending TRR requests queue behind it. In https://share.firefox.dev/4dgv5uI the DoH session carrying 559 TRR streams was evicted at 20.8s and its replacement evicted again at 21.4s.

Consider skipping entries where mConnInfo->GetIsTrrServiceChannel() is true in both eviction loops, as network.trr.preserve_on_background already does for the background case.

Severity: -- → S3
Priority: -- → P2
Whiteboard: [necko-triaged][necko-priority-next]
Assignee: nobody → valentin.gosu
Pushed by valentin.gosu@gmail.com: https://github.com/mozilla-firefox/firefox/commit/d25a7e49de6a https://hg.mozilla.org/integration/autoland/rev/517c81e47839 Don't evict the TRR connection when the global connection limit is hit r=acreskey,necko-reviewers,kershaw
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
QA Whiteboard: [qa-triage-done-c159/b158]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: