Freeradius 1.1.7 no DB handles

A.L.M.Buxey at lboro.ac.uk A.L.M.Buxey at lboro.ac.uk
Wed Nov 14 10:10:44 CET 2007


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



More information about the Freeradius-Users mailing list