]> git.ipfire.org Git - thirdparty/squid.git/commit
Add support for buffer-size= to UDP logging (#359) M-staged-PR359
authormahdi1001 <mahdi1001@users.noreply.github.com>
Sun, 10 Feb 2019 08:08:55 +0000 (08:08 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Mon, 11 Feb 2019 18:09:02 +0000 (18:09 +0000)
commit07d4ea38faaaff658164395a16a4a1499d03b334
treeac1965acfaa9eca9ec31e3e306bd37abbe90bf97
parent2e11c9c289c54820a58fba88a0d41b390629ee52
Add support for buffer-size= to UDP logging (#359)

Allow admin control of buffering for log outputs written to UDP
receivers using the buffer-size= parameter.

buffer-size=0byte disables buffering and sends UDP packets
immediately regardless of line size.

When non-0 values are used lines shorter than the buffer may be
delayed and aggregated into a later UDP packet.

Log lines larger than the buffer size will be sent immediately
and may trigger delivery of previously buffered content to
retain log order (at time of send, not UDP arrival).

To avoid truncation problems known with common recipients
the buffer size remains capped at 1400 bytes.
src/log/ModUdp.cc