Repository navigation
Expose how the SCTP association recovered its data - #10
Merged
electronicboy merged 2 commits intoDec 1, 2026
Merged
electronicboy merged 2 commits into
electronicboy merged 2 commits into
Conversation
Brings in opencollab-incubator/libdatachannel#7's per-association SCTP recovery counters, with opencollab-incubator/usrsctp#2 and opencollab-incubator#3 counting them, and opencollab-incubator#8's configurable Data Channel DSCP. The DSCP fields sit in rtcConfiguration ahead of iceUdpMuxDirect; native_peer.cpp zero-initialises the struct and sets fields by name, so peers keep AF11 until a setting exposes it.
SctpStats gains fastRetransmits(), retransmittedChunks(), gapSacks() and duplicateTsnsReceived(): an association's own fast retransmits, DATA chunks sent again, SACKs that reported gaps and duplicate DATA received, which together with dataTimeouts() say how its data is being recovered.
electronicboy
force-pushed
the
shane/sctp-assoc-recovery
branch
from
December 1, 2026 09:24
21a362b to
bb0b318
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Exposes opencollab-incubator/libdatachannel#7's per-association recovery counters on
SctpStats:fastRetransmits(): packets sent by fast retransmit, after gap reports;retransmittedChunks(): DATA chunks sent again, by fast retransmit or timeout;gapSacks(): SACKs received that reported gaps;duplicateTsnsReceived(): DATA chunks received that had already arrived.Together with
dataTimeouts(), they show how an association's data is being recovered. That's what was needed to watch the usrsctp T3-rtx fix (opencollab-incubator/usrsctp#1) on real players.native_peer.cpppasses them throughSctpStats.create.Submodule
5a24ca4syncsjni/libdatachannelto1fe8a38, the merge of Report how the SCTP association recovered its data libdatachannel#7. That brings in Count how each association's data was recovered usrsctp#2 and Release peer-owned tracks and preserve asynchronous receive buffers #3, which count them, and also Sync jni/libdatachannel to latest fork update #8's configurable Data Channel DSCP. The DSCP fields sit inrtcConfigurationahead oficeUdpMuxDirect, butnative_peer.cppzero-initialises the struct and sets fields by name, so peers stay on AF11 until Expose the Data Channel DSCP as a setting #11 exposes the setting..gitmoduleschange pointing atelectronicboy/libdatachannelis gone.Testing
:compileJavapasses, and this repo's native build matrix runs on this PR against the libdatachannel commit above.