v4 - linelog taking 1 second to write to local file
Alan DeKok
alan.dekok at inkbridge.io
Sat Apr 4 15:45:58 UTC 2026
On Apr 2, 2026, at 5:41 PM, James Wood via Freeradius-Users <freeradius-users at lists.freeradius.org> wrote:
>
> I have the following config in radiusd.conf:
>
> log {
> destination = file
> file = ${logdir}/radius.log
> }
>
> When configured with destination = file, it's taking 1 second to write to
> the file exactly for any linelog configured output. If I change it to
> syslog instead of file, it's instant. This results in a one-second delay in
> the reply back to the client.
There's some undocumented configuration flags which buffer the output. That allows batching log writes.
I've documented the flags, and updated the code so that the default is to not buffer writes. That follows the principle of least surprise.
Alan DeKok.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20260404/489d03b3/attachment.sig>
More information about the Freeradius-Users
mailing list