detail file locking
Alan DeKok
aland at deployingradius.com
Fri Nov 19 20:54:20 CET 2021
On Nov 19, 2021, at 11:59 AM, Thor Spruyt <thor.spruyt at telenet.be> wrote:
> I have a configuration with a "detail" module writing to a file with locking = yes
> I have a type = detail listener on that same file.
>
> Under some load, apparantly, very sporadically a packet seems to gets lost.
> Am I correct to say that with locking = yes , there should never be any packet lost due to the reader renaming the file while the writer is writing to it ?
Yes.
The writing process is:
lock the file
write to it
unlock
The rename process is:
try to lock it
if not, wait a bit
rename it
unlock it
> How would be a good approach to further troubleshoot this ?
It's pretty hard. If there's a lot of traffic, there would be a lot of debugging logs. And that's hard to deal with.
Alan DeKok.
More information about the Freeradius-Users
mailing list