summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2014-10-28 22:22:25 +0300
committerDmitry Kozlov <xeb@mail.ru>2014-10-28 22:22:25 +0300
commit49eba734d030deb3b06ff4a420888aec19721e0f (patch)
tree442b468dc7ee906892bed19fcae96941e506e1ca
parente7ace63e0fbb0517d6f68741b23c4920f83d7e98 (diff)
downloadaccel-ppp-49eba734d030deb3b06ff4a420888aec19721e0f.tar.gz
accel-ppp-49eba734d030deb3b06ff4a420888aec19721e0f.zip
radius: fixed server reallocation for timed out requests
-rw-r--r--accel-pppd/radius/req.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/accel-pppd/radius/req.c b/accel-pppd/radius/req.c
index b07198f..a15baec 100644
--- a/accel-pppd/radius/req.c
+++ b/accel-pppd/radius/req.c
@@ -353,14 +353,15 @@ int rad_req_send(struct rad_req_t *req)
req->send = __rad_req_send;
if (req->try++ == conf_max_try) {
- if (req->active) {
+ if (req->active)
rad_server_req_exit(req);
- if (rad_server_realloc(req)) {
- if (req->rpd)
- log_ppp_warn("radius: no available servers\n");
- return -1;
- }
+ log_ppp_warn("radius: server(%i) not responding\n", req->serv->id);
+
+ if (rad_server_realloc(req)) {
+ if (req->rpd)
+ log_ppp_warn("radius: no available servers\n");
+ return -1;
}
req->try = 1;