Don't evict the TRR connection when the global connection limit is hit
Categories
(Core :: Networking: HTTP, enhancement, P2)
Tracking
()
| 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.
Updated•2 months ago
|
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 1•2 months ago
|
||
Comment 3•2 months ago
|
||
| bugherder | ||
Updated•1 month ago
|
Description
•