Creating many short lived WebRTC data channels fails
Categories
(Core :: WebRTC: Networking, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox129 | --- | fixed |
People
(Reporter: alex, Assigned: bwc)
References
(Regressed 1 open bug)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
Steps to reproduce:
See the runnable reproduction in this repo: https://github.com/achingbrain/webrtc-many-datachannels
The steps are:
- Have a WebRTC peer that just echoes and data received on a data channel back to the data channel
- Connect to the echoing peer
- Open a channel, wait for the channel to open, send a small amount of data, read a small amount of data, close the channel, wait for the channel to close
- Repeat no. 3
Actual results:
After a small number of iterations (2-3) the remote peer no longer receives new data channels but the sender thinks they've opened them.
No error event is emitted on the sender channel and the RTCPeerConnections at both ends remain in the "connected" state.
Expected results:
The remote peer should receive new channels and the sending peer should receive the data echoed back to it.
This works with Chrome as the sender and the echoer, it also works with Chrome as the sender and Firefox as the echoer, but it is broken with Firefox as the sender.
Comment 1•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::WebRTC' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Comment 2•1 year ago
|
||
Ok, I definitely am seeing some sort of race involving automatically chosen channel id reuse when channels are rapidly opened/used/closed. It looks like we're occasionally reusing a channel id too early and confusing the other side. Trying to figure out why that is, exactly.
Updated•1 year ago
|
| Assignee | ||
Comment 3•1 year ago
|
||
| Assignee | ||
Comment 4•1 year ago
|
||
Depends on D214430
| Assignee | ||
Comment 5•1 year ago
|
||
Comment 8•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/4812f4312d4b
https://hg.mozilla.org/mozilla-central/rev/f4f6551a2943
Description
•