freeradius-client "radius_timeout" and freeradius-client vs freeradius-server

Stefan Karss stefan.karss at googlemail.com
Tue Mar 23 13:33:44 CET 2010


Hello list,

during development of a radius test client using freeradius-client library I
stumbled across line 317 in sendserver.c from CVS HEAD:

                        result = poll(&pfd, 1, timeout * 1000000);

This line came with revision 1.26 where select() was rewritten with poll().
The timeout value for poll however is in milliseconds not in microseconds so
that timeout will be 1000 times higher than configured in the
radiusclient.conf.

As the bug seems to be in the code since November 2008 I wonder if
freeradius-client is the right way to go for a radius client or if one
should use the freeradius-server libraries to build a client? Or is the
right way to go the 1.1.6 release downloadable on the homepage -
unfortunately this release does not have the patches from Alex Massover
regarding seqfile and thread safety.

Rgds,
Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20100323/e52315bc/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sendserver.c.patch
Type: application/octet-stream
Size: 403 bytes
Desc: not available
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20100323/e52315bc/attachment.obj>


More information about the Freeradius-Devel mailing list