Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion rtc-sctp/src/association/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2522,7 +2522,12 @@ impl Association {
let reliability_value = s.reliability_value;

if reliability_type == ReliabilityType::Rexmit {
if c.nsent >= reliability_value {
// RFC 3758 §5.3.1: abandon when transmitted MORE THAN max_retransmits times.
// Use `>` not `>=`: with max_retransmits=N the chunk may be sent N+1 times total
// (1 initial + N retransmissions), so abandon when nsent > N (reliability_value).
// Using `>=` would incorrectly abandon after only N total sends (one too few).
// Fixes: webrtc-rs/webrtc#776
if c.nsent > reliability_value {
c.set_abandoned(true);
trace!(
"[{}] marked as abandoned: tsn={} ppi={} (remix: {})",
Expand Down