Thanks! That's just what I needed.

-- Ryan


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alan DeKok
Sent: Tuesday, February 17, 2004 10:31 AM
To: [EMAIL PROTECTED]
Subject: Re: Behavior of FreeRADIUS AAA function hooks 

"Ryan LeCompte" <[EMAIL PROTECTED]> wrote:
> I would like to know if FreeRADIUS invokes the various AAA function hooks
> synchronously or asynchronously?

  The server is multi-threaded.  The methods can be access
simultaneously from multiple threads.

> For example, is it possible that the modulename_postauth() and
> modulename_preauth() functions could be invoked by multiple threads
> concurrently? Or is each client authenticated serially? I ask this
> question because I'd like to record state between the preauth() and
> postauth() hooks, but I'm wondering if I need to take care of the
> thread-safety issues as to avoid any data race conditions.

  See the modules for examples on how to mark your module non-thread-safe.

  Alan DeKok.

- 
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to