]> git.ipfire.org Git - thirdparty/squid.git/commit
Add support for buffer-size= to UDP logging #359 (#377)
authormahdi1001 <mahdi1001@users.noreply.github.com>
Sun, 24 Feb 2019 09:24:14 +0000 (12:54 +0330)
committerAmos Jeffries <yadij@users.noreply.github.com>
Sun, 24 Feb 2019 09:24:14 +0000 (22:24 +1300)
commit8521ecd216765a1d703c30a2bb90b69a9d419e79
tree9998a6175dba2e151bc053ca0ab40d649bea1e6d
parent227df181d3249bd1a6bdc5fe7c1f52c23656ac3f
Add support for buffer-size= to UDP logging #359 (#377)

* 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.

* Fixed source code formatting
src/log/ModUdp.cc