]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Mark home server dead if it doesn't respond to pings
authorAlan T. DeKok <aland@freeradius.org>
Tue, 6 Oct 2009 06:48:02 +0000 (08:48 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 20 Oct 2009 22:02:08 +0000 (00:02 +0200)
src/main/event.c

index b14b84a5f593c2a42ad3e34235f58db7ec153393..62d9dbf0dfb455ae0a5c08fbb110f95a78977a9f 100644 (file)
@@ -100,6 +100,7 @@ static fr_packet_list_t *proxy_list = NULL;
  */
 static int             proxy_fds[32];
 static rad_listen_t    *proxy_listeners[32];
+static void check_for_zombie_home_server(REQUEST *request);
 #else
 #define remove_from_proxy_hash(foo)
 #endif
@@ -634,6 +635,8 @@ static void no_response_to_ping(void *ctx)
                         buffer, sizeof(buffer)),
               request->proxy->dst_port);
 
+       check_for_zombie_home_server(request);
+
        wait_for_proxy_id_to_expire(request);
 }