Mercurial > hg > freeDiameter
diff 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 |
line wrap: on
line diff
--- a/libfdcore/p_sr.c Sat Sep 14 12:56:05 2013 +0200 +++ b/libfdcore/p_sr.c Thu Oct 10 16:08:46 2013 +0200 @@ -336,6 +336,7 @@ } /* The list of expiring requests must be empty now */ ASSERT( FD_IS_LIST_EMPTY(&srlist->exp) ); + ASSERT( srlist->cnt == 0 ); /* debug the counter management if needed */ CHECK_POSIX_DO( pthread_mutex_unlock(&srlist->mtx), /* continue anyway */ );