Open Bug 1528285 (omt-asyncopen) Opened 1 year ago Updated 6 days ago

Allow call of AsyncOpen and OnStart/OnStopRequest off the main thread

Categories

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

enhancement

Tracking

()

ASSIGNED
Tracking Status
firefox67 --- affected

People

(Reporter: mayhemer, Assigned: juhsu)

References

(Blocks 5 open bugs)

Details

(Whiteboard: [necko-triaged][qf:p2:pageload])

I believe there are consumers that can accept OnStartRequest and OnStopRequest on non-main thread(s). This is definitely needed to make bug 1505493 reality (CacheFileInputStream::NotifyListener triggers also OnStartRequest, so it can't be that simply moved to a background thread)

I meant to open this bug today. We want to move asyncOpen on the child process as well.

Summary: Allow optional retarget of OnStart/OnStopRequest as well → Allow call of AsyncOpen and OnStart/OnStopRequest of the main thread

\o/

Summary: Allow call of AsyncOpen and OnStart/OnStopRequest of the main thread → Allow call of AsyncOpen and OnStart/OnStopRequest off the main thread
Priority: -- → P2
Whiteboard: [necko-triaged]
Assignee: nobody → dd.mozilla
Status: NEW → ASSIGNED
Blocks: 1510262

Valentin, is your work on URI off main thread fur enough that we can do this?

Flags: needinfo?(valentin.gosu)

(In reply to Dragana Damjanovic [:dragana] from comment #3)

Valentin, is your work on URI off main thread fur enough that we can do this?

Ooops, missed this ni. Yes, the OMT URI work is officially complete in Fx 69

Flags: needinfo?(valentin.gosu)
Assignee: dd.mozilla → juhsu

Getting this would likely be a significant help with e10s network requests, especially on Fenix

Whiteboard: [necko-triaged] → [necko-triaged][qf]
Alias: omt-asyncopen
Whiteboard: [necko-triaged][qf] → [necko-triaged][qf:p2:pageload]
You need to log in before you can comment on or make changes to this bug.