Re: Freeradius 1.1.7 no DB handles



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




This archive was generated by a fusion of Pipermail (Mailman edition) and MHonArc.