Open Bug 1167039 Opened 7 years ago Updated 3 years ago

Move all uses of UDPSocket to PBackground


(Core :: Networking, defect, P3)




Tracking Status
firefox41 --- affected


(Reporter: jesup, Unassigned)


(Depends on 1 open bug)


(Keywords: perf, Whiteboard: [necko-backlog])

UDPSocket currently uses PNecko, which means that all traffic touches MainThread.  This can be hugely delay-inducing, such as when I saw 3-second+ RTT for a loopback webrtc call (because MainThread on B2G was busy).

It should use PBackground.  mtransport (i.e. webrtc) is moving to PBackground in bug 1109338.  That includes much of the work needed to move other uses of UDPSocket to PBackground; the only bit left would be to extend the non-NULL PrincipalInfo support using the WIP patch I'll attach here.  The remaining part of that is to block Bind from completing until Principal checks have completed.
Whiteboard: [necko-backlog]
Bulk change to priority:
Priority: -- → P1
Bulk change to priority:
Priority: P1 → P3
When we do this, we should validate that the principal supplied is valid for the content process it comes from.
Depends on: fission-ipc-map
You need to log in before you can comment on or make changes to this bug.