Repository navigation
fix/port bugfixes from r06a02_dev to master - #145
Merged
Merged
Conversation
…reprocessor to the data handler, since PDU messages carry SAP and PDU length in the srcId/dstId/LCO header space and were being denied as a destination mismatch on slaved voice channels; (#143)
…emaining datagram in the batch; (#144) sendmmsg() returns -1 only when the first message of the call fails, so the batch write treated any error as fatal and abandoned every message after it. On an FNE those messages are frames for other peers, so one peer whose tunnel returns EDESTADDRREQ (a WireGuard peer with no current endpoint) silenced voice traffic to every peer queued behind it. The failed message is now dropped and the rest of the batch is still sent. Each drop advances the batch, so a persistent error cannot loop. The write still returns false with lenWritten = -1 when any datagram was dropped. Logging changes: the first failure in a batch is logged with its destination address and port ("dropping packet N of M to <addr>:<port>", replacing "after sending N of M packet"), and further drops in the same batch are reported in one "Dropped N of M packet from sendmmsg batch" summary, so a socket-wide error does not log once per datagram. The "Required multiple writes ... (this shouldn't happen!)" warning, which now fires on every handled mid-batch failure, is reworded and moved to debug.
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.
Summary
Component(s)
Which part(s) of the project does this affect?
Type of change
Related issues
6e4c63d
d3cc183
aed5469
Build & test notes
Debian 12
x86_64
dvmtests result:
All tests passed (25148 assertions in 707 test cases)
Logs / output (if applicable)
N/A
Checklist
Notes for maintainers
N/A