diff options
author | venaas <venaas> | 2008-07-21 09:31:13 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2008-07-21 09:31:13 +0000 |
commit | 93ed24ca352e3b1ad4df0f406aabd08467bdd8e7 (patch) | |
tree | 7855b22a42e113d78afc094c9a25efcc0ca1c368 | |
parent | ae3bd3d5edf72f819b43265d3ce8a1d66c6de387 (diff) |
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
-rw-r--r-- | radsecproxy.c | 14 |
1 files 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; |