[socket process] Stop using HTTP connection manager on the parent process
Categories
(Core :: Networking: HTTP, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox65 | --- | affected |
People
(Reporter: dragana, Assigned: kershaw)
References
(Blocks 1 open bug)
Details
(Whiteboard: [necko-triaged])
Attachments
(5 obsolete files)
Reporter | ||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
This is a short summary about things we need to do for not using http connection manager on parent process.
-
Decouple nsHttpConnectionMgr and AltSvcCache.
Currently, nsHttpConnectionMgr inherited from AltSvcCache [1]. A lot of code in AlternateServices.cpp access connection manager just for the methods AltSvcCache, like [2]. -
Proxy observer events in nsHttpHandler::Observe to socket process. An example is like [3].
-
Add a IPC message for triggering SpeculativeConnect [4].
-
Send HttpInfo from socket process to parent process [5].
-
Implement IPC messages for [6] and [7].
[1] https://searchfox.org/mozilla-central/rev/60c4067b1cbb0f94d7dc2d7cdfa27ed579817fee/netwerk/protocol/http/nsHttpConnectionMgr.h#50
[2] https://searchfox.org/mozilla-central/rev/e00ea598e52bbb35f8c45abf9c2eade17962bb5e/netwerk/protocol/http/AlternateServices.cpp#146
[3] https://searchfox.org/mozilla-central/rev/e00ea598e52bbb35f8c45abf9c2eade17962bb5e/netwerk/protocol/http/nsHttpHandler.cpp#2237-2239
[4] https://searchfox.org/mozilla-central/rev/e00ea598e52bbb35f8c45abf9c2eade17962bb5e/netwerk/protocol/http/nsHttpHandler.h#294
[5] https://searchfox.org/mozilla-central/rev/9eb30227b21e0aa40d51d9f9b08bb0b113c5fadb/netwerk/protocol/http/HttpInfo.cpp#13
[6] https://searchfox.org/mozilla-central/rev/e00ea598e52bbb35f8c45abf9c2eade17962bb5e/netwerk/protocol/http/nsHttpChannel.cpp#6561
[7] https://searchfox.org/mozilla-central/rev/e00ea598e52bbb35f8c45abf9c2eade17962bb5e/netwerk/protocol/http/nsHttpChannel.cpp#7625
Assignee | ||
Comment 2•6 years ago
|
||
Since nsHttpConnectionMgr inherits AltSvcCache only for using the methods in AltSvcCache, we should seperate nsHttpConnectionMgr and AltSvcCache.
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
|
||
Patches are landed on larch.
Comment 8•6 years ago
•
|
||
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Description
•