Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit a401fa7

Browse files
committed
Bug 855623: Update DataChannel protocol to be declarative vs 3-way handshake (per IETF) r=tuexen,ehugg
1 parent 8de3147 commit a401fa7

4 files changed

Lines changed: 152 additions & 399 deletions

File tree

media/webrtc/signaling/src/peerconnection/PeerConnectionImpl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,8 @@ PeerConnectionImpl::InitializeDataChannel(uint16_t aLocalport,
654654
// and we increase the number of streams dynamically as needed.
655655
return NS_OK;
656656
}
657-
mDataConnection = new mozilla::DataChannelConnection(this);
657+
// FIX! Temporary cheat to decide on even/odd
658+
mDataConnection = new mozilla::DataChannelConnection(this, aLocalport > aRemoteport);
658659
if (!mDataConnection->Init(aLocalport, aNumstreams, true)) {
659660
CSFLogError(logTag,"%s DataConnection Init Failed",__FUNCTION__);
660661
return NS_ERROR_FAILURE;

0 commit comments

Comments
 (0)