rlm_cache locking (or not)
aland at deployingradius.com
Fri Oct 26 17:41:07 CEST 2012
Arran Cudbard-Bell wrote:
> I've only ever tested it in debugging mode, which of course runs single threaded... I'd assumed that as Alan wrote the code there had to be locks associated with the rbtree but no... obviously not.
No. The rbtree API just does trees. It doesn't do locks.
> Quick fix would be to change type to RLM_TYPE_THREAD_UNSAFE in the module_t struct, then it'll go through modcall_single.
More information about the Freeradius-Devel