Open Bug 1167039 Opened 10 years ago Updated 2 years ago

Move all uses of UDPSocket to PBackground

Categories

(Core :: Networking, defect, P3)

defect

Tracking

()

Tracking Status
firefox41 --- affected

People

(Reporter: jesup, Unassigned)

References

(Depends on 1 open bug)

Details

(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]
Priority: -- → P1
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
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.