comparison libfdcore/p_sr.c @ 1238:8f9684264fe0

Change management of the p_reqin_count counter to be updated only on routable messages. This should limit the errors in the counter value resulting from rejected or discarded link-local messages.
author Sebastien Decugis <sdecugis@freediameter.net>
date Thu, 10 Oct 2013 16:08:46 +0200
parents 9e92fa478c23
children b059b9e8ef83
comparison
equal deleted inserted replaced
1236:a0d9fb49694e 1238:8f9684264fe0
334 } 334 }
335 free(sr); 335 free(sr);
336 } 336 }
337 /* The list of expiring requests must be empty now */ 337 /* The list of expiring requests must be empty now */
338 ASSERT( FD_IS_LIST_EMPTY(&srlist->exp) ); 338 ASSERT( FD_IS_LIST_EMPTY(&srlist->exp) );
339 ASSERT( srlist->cnt == 0 ); /* debug the counter management if needed */
339 340
340 CHECK_POSIX_DO( pthread_mutex_unlock(&srlist->mtx), /* continue anyway */ ); 341 CHECK_POSIX_DO( pthread_mutex_unlock(&srlist->mtx), /* continue anyway */ );
341 342
342 /* Terminate the expiry thread (must be done when the lock can be taken) */ 343 /* Terminate the expiry thread (must be done when the lock can be taken) */
343 CHECK_FCT_DO( fd_thr_term(&srlist->thr), /* ignore error */ ); 344 CHECK_FCT_DO( fd_thr_term(&srlist->thr), /* ignore error */ );
"Welcome to our mercurial repository"