FreeRadius Losing packets in Multi-Threads mode

Pierre Rondou prondou at gmail.com
Tue Oct 25 16:29:13 CEST 2011


Hello everybody,

I'm currently running freeradius on a debian (squeeze) server

# uname -a
Linux test 2.6.32-5-amd64 #1 SMP Mon Oct 3 03:59:20 UTC 2011 x86_64 
GNU/Linux

# freeradius -v
freeradius: FreeRADIUS Version 2.1.10, for host x86_64-pc-linux-gnu, 
built on Nov 14 2010 at 21:12:30


The problem is that the server seems to lose accounting packets in 
Multithread mode
Logging with module "detail" or "linelog" logs only a very little amount 
(0.5%) of the transmitted packets. The client receive all the answer, 
but my problem is that I rely on those logs for an other program.

Example:


# echo "Message-Authenticator = 0x00" | radclient 127.0.0.1 acct 
testing123 -c 2500000 > temp && wc -l temp && wc -l 
/var/log/freeradius/radacct/127.0.0.1/detail-20111025
2500000 temp
84224 /var/log/freeradius/radacct/127.0.0.1/detail-20111025


This only happen when using FreeRadius in Multithread mode, while using 
it in single-thread (freeradius -s), all the packets are logged correctly.

Anyone has a hint on this problem?

Regards,

Pierre Rondou



More information about the Freeradius-Users mailing list