Closed Bug 576698 Opened 14 years ago Closed 14 years ago

e10s HTTP: Reduce resource usage by freeing IPDL and chrome objects after OnStopRequest

Categories

(Core :: Networking: HTTP, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 572980

People

(Reporter: jduell.mcbugs, Assigned: jdm)

References

Details

bz informs me that nsIChannels are often kept around for a long time (for example, nsDocument holds on to its channel in perpetuity so it can get stuff like HTTP headers and whatnot as needed). Right now keeping a reference to an HttpChannelChild results in the entire IPDL protocol being kept alive, including the HttpChannelParent/nsHttpChannel in chrome. This is a waste of resources. We should be able to close down the IPDL channel and free the HttpChannelParent/nsHttpChannel after HttpChannelChild delivers OnStopRequest to its listener. nsDocument should have everything it needs from the HttpChannelChild. If we do this we should get rid of the the current PHttpChannel.ipdl "OnStopRequestCompleted" message, which is being used now only to free the cache descriptor. We would be sending __delete__ at the same time as that msg is currently called, and we could do the work in ~HttpChannelParent().
Blocks: 572980
Assignee: nobody → josh
This has been fixed by bug 572980, which subsumed this.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.