Skip to content

Add receive_buffer_bytes option and read full-size UDP datagrams - #81

Open
peninoule wants to merge 1 commit into
logstash-plugins:mainfrom
peninoule:receive-buffer-bytes
Open

Add receive_buffer_bytes option and read full-size UDP datagrams#81
peninoule wants to merge 1 commit into
logstash-plugins:mainfrom
peninoule:receive-buffer-bytes

Conversation

@peninoule

Copy link
Copy Markdown

The UDP listener never calls setsockopt, so the socket receive buffer is stuck at the OS default (net.core.rmem_default, ~208KiB on Linux).
Under a log burst the buffer fills in milliseconds and the kernel silently drops datagrams (visible as Udp RcvbufErrors).
Add the receive_buffer_bytes option, mirroring logstash-input-udp, so users can request a larger buffer up to net.core.rmem_max.

Also read up to 65536 bytes per datagram instead of 8192, so unchunked GELF datagrams larger than 8KiB are no longer truncated.

@cla-checker-service

cla-checker-service Bot commented Aug 17, 2026

Copy link
Copy Markdown

💚 CLA has been signed

@peninoule
peninoule marked this pull request as ready for review August 17, 2026 16:32
The UDP listener never calls setsockopt, so the socket receive buffer is
stuck at the OS default (net.core.rmem_default, ~208KiB on Linux). Under a
log burst the buffer fills in milliseconds and the kernel silently drops
datagrams (visible as Udp RcvbufErrors). Add the receive_buffer_bytes
option, mirroring logstash-input-udp, so users can request a larger buffer
up to net.core.rmem_max.

Also read up to 65536 bytes per datagram instead of 8192, so unchunked
GELF datagrams larger than 8KiB are no longer truncated.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@peninoule
peninoule force-pushed the receive-buffer-bytes branch from 838b798 to 11fb768 Compare August 18, 2026 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant