Skip to content

Commit

Permalink
don't count status server requests in internal stats
Browse files Browse the repository at this point in the history
Requests to to status server should not be added to the internal counters,
notably the Access-Accept replies. See also the thread in
http://lists.freeradius.org/pipermail/freeradius-devel/2013-March/007801.html
  • Loading branch information
Jakob Hirsch authored and alandekok committed Mar 7, 2013
1 parent 909b49d commit f6ec8f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ void request_stats_final(REQUEST *request)
(request->listener->type != RAD_LISTEN_AUTH) &&
(request->listener->type != RAD_LISTEN_ACCT)) return;

/* don't count statistic requests */
if (request->packet->code == PW_STATUS_SERVER)
return;

#undef INC_AUTH
#define INC_AUTH(_x) radius_auth_stats._x++;request->listener->stats._x++;if (request->client && request->client->auth) request->client->auth->_x++;

Expand Down

0 comments on commit f6ec8f8

Please sign in to comment.