fix: broadcast all SRT control packets to all connections#9
fix: broadcast all SRT control packets to all connections#9
Conversation
WalkthroughACKs and NAKs are now treated as broadcast-worthy and sent to all connections in a group; other control packets continue to be sent to the group's last_address(). A new helper Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
9efff6d to
a6fc01d
Compare
Previously, only ACKs were sent to all connections while NAKs and other control packets were sent only to the last active connection. If that connection was dead, NAKs would be lost and retransmissions would fail. Now ACKs and NAKs are broadcast to all connections, matching Moblin's approach. Other control packets still go to last_address(). Co-authored-by: servusrene <48084558+servusrene@users.noreply.github.com>
a6fc01d to
2655cb5
Compare
Summary
last_address()which could be a dead connection, causing retransmission failuresProblem
When a connection dies or becomes unhealthy:
last_address()might still point to the dead connectionSolution
Broadcast all SRT control packets to all connections in the group, matching the existing behavior for ACKs. This ensures NAKs reach the sender through at least one healthy connection.
Safety
m_bConnectingflag)Summary by CodeRabbit