Repository navigation
Ask for 8 MB UDP socket buffers on the raw-QUIC client on Linux - #67
Merged
Merged
Conversation
The default UDP receive buffer (about 208 KB) overflowed on a receiver at media rates. The raw-QUIC client of the service endpoint now asks picoquic for 8 MB socket buffers on Linux, which caps the request at net.core.rmem_max without failing. Other systems keep their default, because macOS refuses a size above kern.ipc.maxsockbuf. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
On Linux, the raw-QUIC client of
moq_endpointnow asks picoquic for 8 MB UDP socket buffers (socket_buffer_bytes). The kernel default of about 208 KB overflowed on a receiver:RcvbufErrorsgrew by about 2 per second per socket. In a one-hour A/B test on 10 November 2026, a receiver with 8 MB buffers (set throughrmem_default) dropped 0 packets, against 7,233 with 208 KB.Linux silently caps the request at twice
net.core.rmem_max. A stock host therefore gets about 416 KB. The full 8 MB needs the operator to raise that limit. Callers need no change. Other systems keep their default, because macOS refuses a size abovekern.ipc.maxsockbufand the socket would then not open. A new test checks the value the adapter receives.This change is