Closed Bug 1509822 Opened 6 years ago Closed 6 years ago

[socket process] Stop using HTTP connection manager on the parent process

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
Tracking Status
firefox65 --- affected

People

(Reporter: dragana, Assigned: kershaw)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

Attachments

(5 obsolete files)

No description provided.
Priority: -- → P2
Whiteboard: [necko-triaged]
Assignee: nobody → kershaw

This is a short summary about things we need to do for not using http connection manager on parent process.

  1. 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].

  2. Proxy observer events in nsHttpHandler::Observe to socket process. An example is like [3].

  3. Add a IPC message for triggering SpeculativeConnect [4].

  4. Send HttpInfo from socket process to parent process [5].

  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

Since nsHttpConnectionMgr inherits AltSvcCache only for using the methods in AltSvcCache, we should seperate nsHttpConnectionMgr and AltSvcCache.

Patches are landed on larch.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Attachment #9042190 - Attachment is obsolete: true
Attachment #9042480 - Attachment is obsolete: true
Attachment #9043299 - Attachment is obsolete: true
Attachment #9043332 - Attachment is obsolete: true
Attachment #9043356 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: