]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
enforce response_window only for synchronous requests
authorAlan T. DeKok <aland@freeradius.org>
Mon, 23 Aug 2021 20:27:47 +0000 (16:27 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 23 Aug 2021 20:27:47 +0000 (16:27 -0400)
src/modules/rlm_radius/rlm_radius_udp.c

index a1818afbe2b183f1bbc83ceaf68ca61082983321..6821313e0ee6ae1c17da6c709496020938637d83 100644 (file)
@@ -1627,7 +1627,7 @@ static bool check_for_zombie(fr_event_list_t *el, fr_trunk_connection_t *tconn,
        /*
         *      If we've seen ANY response in the allowed window, then the connection is still alive.
         */
-       if (last_sent && ((last_sent + h->inst->parent->response_window) < now)) return false;
+       if (h->inst->parent->synchronous && last_sent && ((last_sent + h->inst->parent->response_window) < now)) return false;
 
        /*
         *      Mark the connection as inactive, but keep sending