radiusclient thread-safety

Alan DeKok aland at deployingradius.com
Fri Feb 26 16:50:54 CET 2010


Alex Massover wrote:
> Hello,
> 
> I'm using radiusclient lib from multithreaded application, by having a "static rc_handle *rh" and calling rc_auth() from different threads.

  It's not thread-safe.  There are no mutex locks in the code.

> Can someone enlighten me on the subj please?

  Use one rc_handle per child thread.

  The code needs pretty significant changes to make it thread-safe.

  Alan DeKok.



More information about the Freeradius-Devel mailing list