Create a simple http channel which is only used for TRR
Categories
(Core :: Networking, task, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox75 | --- | fixed |
People
(Reporter: kershaw, Assigned: kershaw)
References
Details
(Whiteboard: [necko-triaged])
Attachments
(7 files)
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review |
See the design doc below.
https://docs.google.com/document/d/18yb_-rvC-Lj6uQVFGLrYvI3kNCEaDNq2gr-5VfI1TI0/edit?usp=sharing
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
| Assignee | ||
Comment 2•6 years ago
|
||
Some obstacles when making SimpleHttpChannel off main thread.
SystemPrincipalcan only used on main thread. We can't sue it here.- LoadInfo expects that both loading and triggering principals not be null, so maybe we should create
SimpleHttpChannelwithoutLoadInfo. - Need to modify
nsHttpHandler::NewChannelIdto make it thread safe. - Some functions below are expected to be called on main thread.
nsHttpTransaction::InitNS_GetOriginAttributesnsHttpTransaction::InitHttpBaseChannel::MaybeWaitForUploadStreamLengthAltSvcCache::GetAltServiceMappingHttpBaseChannel::SetNotificationCallbacksHttpBaseChannel::ReleaseListenersnsHttpTransaction::OnPush
nsDNSPrefetchis main thread only.nsProtocolProxyServiceis not thread safe.- Need to modify
TRR.cppandTRRService.cppto remove main thread assertion. - Need to dispatch
TRRrunnable to another thread.
| Assignee | ||
Comment 3•6 years ago
|
||
| Assignee | ||
Comment 4•6 years ago
|
||
| Assignee | ||
Comment 5•6 years ago
|
||
| Assignee | ||
Comment 6•6 years ago
|
||
| Assignee | ||
Comment 7•6 years ago
|
||
| Assignee | ||
Comment 8•6 years ago
|
||
(In reply to Kershaw Chang [:kershaw] from comment #0)
See the design doc below.
https://docs.google.com/document/d/18yb_-rvC-Lj6uQVFGLrYvI3kNCEaDNq2gr-5VfI1TI0/edit?usp=sharing
Honza, could you take a quick look at this doc?
I'd like to make sure that I don't miss anything important.
Thanks!
| Assignee | ||
Comment 9•6 years ago
|
||
| Assignee | ||
Comment 10•6 years ago
|
||
(In reply to Kershaw Chang [:kershaw] from comment #8)
(In reply to Kershaw Chang [:kershaw] from comment #0)
See the design doc below.
https://docs.google.com/document/d/18yb_-rvC-Lj6uQVFGLrYvI3kNCEaDNq2gr-5VfI1TI0/edit?usp=sharing
Honza, could you take a quick look at this doc?
I'd like to make sure that I don't miss anything important.Thanks!
Clear the ni. Feel free to file new bugs if you have any concerns or think something is missing.
Comment 11•6 years ago
|
||
Comment 12•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/9f788f296658
https://hg.mozilla.org/mozilla-central/rev/169136e81b36
https://hg.mozilla.org/mozilla-central/rev/aa2177a92447
https://hg.mozilla.org/mozilla-central/rev/6163d720bd10
https://hg.mozilla.org/mozilla-central/rev/8de2717c220c
https://hg.mozilla.org/mozilla-central/rev/edf1b907d5fd
https://hg.mozilla.org/mozilla-central/rev/b41d942711a6
Description
•