diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2014-10-28 22:22:25 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2014-10-28 22:22:25 +0300 |
commit | 49eba734d030deb3b06ff4a420888aec19721e0f (patch) | |
tree | 442b468dc7ee906892bed19fcae96941e506e1ca | |
parent | e7ace63e0fbb0517d6f68741b23c4920f83d7e98 (diff) | |
download | accel-ppp-49eba734d030deb3b06ff4a420888aec19721e0f.tar.gz accel-ppp-49eba734d030deb3b06ff4a420888aec19721e0f.zip |
radius: fixed server reallocation for timed out requests
-rw-r--r-- | accel-pppd/radius/req.c | 13 |
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; |