4 Apr
2026
4 Apr
'26
11:45 a.m.
On Apr 2, 2026, at 5:41 PM, James Wood via Freeradius-Users <freeradius-users@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.