Open
Bug 861721
Opened 12 years ago
Updated 2 years ago
After setting up a peer connection handshake with data channels, if I send a message while offline, then come back online, I will never be able to send messages ever again
Categories
(Core :: WebRTC: Networking, defect, P5)
Core
WebRTC: Networking
Tracking
()
NEW
backlog | webrtc/webaudio+ |
People
(Reporter: jsmith, Unassigned)
Details
Attachments
(1 file)
7.50 KB,
text/html
|
Details |
STR:
1. Load the attached test case while online
2. Setup the handshake online
3. Kill the network
4. Send a message with one character for the local DC
5. Come back online
6. Try sending a message again with one character
Expected:
Debatable. If the connection between two data channels is lost, I'd potentialy expect onclose to fire to indicate that the channels have been closed due to loss of network connectivity temporarily. If it's possible technically to still continue, then I'd expect the message to be sent when you come back online.
Actual:
All sent messages are lost when you come back online. No onclose event fires either. So if a user loses network connectivity after a handshake is established between a local and remote peer with data channels, the connection is permanently lost when we lose connectivity.
So why aren't we telling the developer the connection was lost permanently? Why can't we send messages again when we come back online?
Reporter | ||
Comment 1•12 years ago
|
||
Comment 2•12 years ago
|
||
How are you going offline? Removing the cable, or using the OS to disable the network connection? Or by selecting the browser menu item "Work offline"? If the latter, I believe that calls close() on all PeerConnections (connected or not!) Whether it should (and what errors should be thrown) is a question for discussion.
Reporter | ||
Comment 3•12 years ago
|
||
(In reply to Randell Jesup [:jesup] from comment #2)
> How are you going offline? Removing the cable, or using the OS to disable
> the network connection? Or by selecting the browser menu item "Work
> offline"? If the latter, I believe that calls close() on all
> PeerConnections (connected or not!) Whether it should (and what errors
> should be thrown) is a question for discussion.
I chose work offline to move to go offline during this test case.
Updated•12 years ago
|
Assignee: nobody → rjesup
Priority: -- → P5
Whiteboard: [WebRTC] [blocking-webrtc-]
Updated•10 years ago
|
backlog: --- → webRTC+
Rank: 55
Whiteboard: [WebRTC] [blocking-webrtc-]
Comment 4•7 years ago
|
||
It definitely doesn't call pc.close() at the moment but it probably should (and then just follow the spec from that on).
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•