14 Nov
2007
14 Nov
'07
4:10 a.m.
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