From 90125d7cad59c2c47e1a5765261af4a9d817e7e8 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Thu, 23 Oct 2014 16:42:06 +0400 Subject: radius: introduced max-fail option Before this patch any single fail (no responce for max_try requests) caused radius server to enter "fail" state, which may be unwanted behaviour, because radius may not respond for interim Accounting-Request by some reasons. This patch introduces "max-fail" option which specifies number of unreplied requests in a row after which server enters into "fail" state. (Actual only for multi-server configurations) --- accel-pppd/radius/radius_p.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'accel-pppd/radius/radius_p.h') diff --git a/accel-pppd/radius/radius_p.h b/accel-pppd/radius/radius_p.h index 7e8b0fd9..6f1be672 100644 --- a/accel-pppd/radius/radius_p.h +++ b/accel-pppd/radius/radius_p.h @@ -101,10 +101,12 @@ struct rad_server_t { int req_limit; int req_cnt; int queue_cnt; + int fail_timeout; + int max_fail; + struct list_head req_queue; int client_cnt[2]; time_t fail_time; - int conf_fail_time; int timeout_cnt; int weight; pthread_mutex_t lock; @@ -160,8 +162,6 @@ extern in_addr_t conf_dm_coa_server; extern int conf_dm_coa_port; extern int conf_acct_interim_interval; extern int conf_accounting; -extern int conf_fail_time; -extern int conf_req_limit; extern const char *conf_attr_tunnel_type; int rad_check_nas_pack(struct rad_packet_t *pack); -- cgit v1.2.3