Freeradius 1.1.7 no DB handles

steven meyer kristin.schiffer at gmx.de
Wed Nov 14 11:22:58 CET 2007


Hey, non-threaded works! 
Is it a problem of the server or mysql? I don't really know, what
non-threaded means. Can I run the server in non-threaded mode or is that
just for testing?


A.L.M.Buxey wrote:
> 
> Hi,
> 
>>  if (pthread_mutex_trylock(&cur->mutex) != 0) {
>> 	radlog(L_INFO, "rlm_sql (%s): goto next %d", inst->config->xlat_name,
>> cur->id);
>> 			/* goto next; */
>> 		} /* else we now have the lock */
>> ....
>> The radius inserts accountingdata now into my DB, but this cannot really
>> be
>> a solution. What happens now when there is no socket free? What is the
>> problem of pthread_mutex_trylock()? Any ideas?
> 
> ouch. looks like your system is having problems with allowing access to a
> DB
> handle in a thread. what happens, eg when you run radius in non-threaded
> mode? 
> 
> alan
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
> 
> 

-- 
View this message in context: http://www.nabble.com/Freeradius-1.1.7-no-DB-handles-tf4757305.html#a13743743
Sent from the FreeRadius - User mailing list archive at Nabble.com.




More information about the Freeradius-Users mailing list