Joe Maimon jmaimon at
Sun Oct 16 02:48:19 CEST 2005

returns if it cannot spawn a thread per each request.

It returns before adding the request to the queue.

Does that mean the server will ignore requests if it cannot spawn a 
thread at the time of arrival?

If so, wouldnt it be better to queue it and hope for the availability of 
threads in the near future?

Something like this thread_pool_addrequest()

    while ((thread_pool.total_threads - thread_pool.active_threads) < 
lrad_hash_table_num_elements(thread_pool.queue)) {
                 if (spawn_thread(request->timestamp) == NULL) {
                                "The maximum number of threads (%d) are 
active, cannot spawn new thread to handle request",

More information about the Freeradius-Devel mailing list