Don't increment total_requests for proxied packets
authorAlan T. DeKok <aland@freeradius.org>
Mon, 27 Jul 2009 07:56:48 +0000 (09:56 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 27 Jul 2009 07:56:48 +0000 (09:56 +0200)
This causes double counting.  Instead, only touch outstanding_requests
which is protected by the proxy mutex

src/main/event.c

index a1fcee4..aab1856 100644 (file)
@@ -349,7 +349,6 @@ static int insert_into_proxy_hash(REQUEST *request, int retransmit)
         */
        if (request->home_server) {
                request->home_server->currently_outstanding++;
-               request->home_server->stats.total_requests++;
        }
 
        if (retransmit) {