27ebadccfb
In the previous RADIUS client implementation, when there are multiple RADIUS servers, we kept trying the next server when the current message can not be acked. It leads to endless retry when all the RADIUS servers are down. Fix this by keeping a counter for the accumulated retransmit attempts for the message, and guarantee that after all the servers failover RADIUS_CLIENT_MAX_FAILOVER times the message will be dropped. Another issue with the previous code was that the decision regarding whether the server should fail over was made immediately after we send out the message. This patch guarantees we consider whether a server needs failover after pending ack times out. Signed-off-by: Bo Chen<bochen@meraki.com> |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
radius.c | ||
radius.h | ||
radius_client.c | ||
radius_client.h | ||
radius_das.c | ||
radius_das.h | ||
radius_server.c | ||
radius_server.h |