From 93ed24ca352e3b1ad4df0f406aabd08467bdd8e7 Mon Sep 17 00:00:00 2001 From: venaas Date: Mon, 21 Jul 2008 09:31:13 +0000 Subject: only count lost normal rqs when not statusserver git-svn-id: https://svn.testnett.uninett.no/radsecproxy/branches/release-1.1@310 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- radsecproxy.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/radsecproxy.c b/radsecproxy.c index 6efdb51..55c0bb4 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -2261,9 +2261,17 @@ void *clientwr(void *arg) { if (rq->tries == (*rq->buf == RAD_Status_Server || server->conf->type == 'T' ? 1 : server->conf->retrycount + 1)) { debug(DBG_DBG, "clientwr: removing expired packet from queue"); - debug(DBG_WARN, "clientwr: no server response, %s dead?", server->conf->host); - if (server->lostrqs < 255) - server->lostrqs++; + if (server->conf->statusserver) { + if (*rq->buf == RAD_Status_Server) { + debug(DBG_WARN, "clientwr: no status server response, %s dead?", server->conf->host); + if (server->lostrqs < 255) + server->lostrqs++; + } + } else { + debug(DBG_WARN, "clientwr: no server response, %s dead?", server->conf->host); + if (server->lostrqs < 255) + server->lostrqs++; + } freerqdata(rq); /* setting this to NULL means that it can be reused */ rq->buf = NULL; -- cgit v1.1