Repository navigation
Expose the bytes in the SCTP association's own queues and the send buffer that bounds them - #6
Merged
onebeastchris merged 1 commit intoNov 27, 2026
Conversation
…ffer that bounds them Syncs jni/libdatachannel to opencollab-incubator/libdatachannel@0b158812, which reports them (opencollab-incubator#4).
electronicboy
force-pushed
the
shane/sctp-send-queue-stats
branch
from
November 25, 2026 12:45
130c1eb to
36e0b0a
Compare
electronicboy
marked this pull request as ready for review
November 25, 2026 12:46
onebeastchris
added a commit
to CloudburstMC/Network
that referenced
this pull request
Nov 27, 2026
This brings in upstream improvements, mainly: usrsctp changes: - opencollab-incubator/usrsctp#1 (Restart T3-rtx on a new cumulative ack in the express SACK path) libdatachannel: - opencollab-incubator/libdatachannel#4 (Report the bytes in the SCTP association's own queues) - opencollab-incubator/libdatachannel#5 (Make usrsctp's cwnd-based max burst a setting) - opencollab-incubator/libdatachannel#6 (Pull in usrsctp changes) libdatachannel-java: - opencollab-incubator/libdatachannel-java#6 (Expose the bytes in the SCTP association's own queues and the send buffer that bounds them) - opencollab-incubator/libdatachannel-java#7 (Expose usrsctp's cwnd-based max burst as a setting) - opencollab-incubator/libdatachannel-java#8 (Sync jni/libdatachannel to latest fork update) - opencollab-incubator/libdatachannel-java#9 (fix: windows handles leak (x86_64) due to libstdc++ issue)
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 the three SCTP stats added in opencollab-incubator/libdatachannel#4 (merged) on
SctpStats:sendQueueBytes(): bytes the association has accepted for sending and not had acknowledged, sent or not.DataChannel.bufferedAmount()only counts what usrsctp would not take yet, so up to a whole send buffer (1 MiB by default) waited below it unseen.sendBufferSize(): the bound on that queue, so a reader can tell how full it is and confirmSctpSettings.sendBufferSizetook effect.receiveQueueBytes(): received bytes awaiting reassembly or ordering, the byte counterpart ofpendingChunks().libdatachannel
Syncs
jni/libdatachannelto opencollab-incubator/libdatachannel@0b158812, which has opencollab-incubator/libdatachannel#4 (these stats) and opencollab-incubator/libdatachannel#5 (the cwnd-based max burst setting). It's rebased ontomain, and the temporary commit that fetched the submodule fromelectronicboy/libdatachannelis gone.Testing
NativeTransportProbenow:sendBufferSize(512 KiB)and assertssendBufferSize()reports exactly 524288;Run locally against an Mbed TLS build of the natives (no OpenSSL headers on that machine): all 15 probe scenarios pass, with peaks of 354–376 KB queued. The OpenSSL-dependent native test executables, the other probes and the release builds were not run locally.