wild idea , to better handle dead servers it would be a good idea
to add a struct time_t last_pkt_time in the realm structure
update this value in the rad_recv function
and then in the realm_disable function to add the following code
if (cl->last_pkt_time > ( now - proxy_retry_delay*proxy_retry_count ) ) {
cl->active = TRUE;
cl->wakeup = now;
radlog(L_PROXY, "authentication server
%s:%d for realm %s seems to be alive I am not marking it dead",
cl->server, port, cl->realm);
what the above means is : I have received a packet from this server and
port after the time that I have deemed that it is dead , therefore I
should mark it dead.
proxy_retry_delay*proxy_retry_count is the amount of time we have waited
for the offending packet to get acknowledged.
if we have received a packet in the mean time then the server is fine!
Alan I am very new to CVS and collaborative coding if I find some time I
will try to send a patch but I the mean time I would like your opinion on
the above
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html