]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
don't set idle timeout if we're doing Status-Server checks
authorAlan T. DeKok <aland@freeradius.org>
Sat, 12 Aug 2017 16:07:17 +0000 (18:07 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 12 Aug 2017 16:07:17 +0000 (18:07 +0200)
src/modules/rlm_radius/rlm_radius_udp.c

index 10c78231ad919acc7adcbfcfc7bde0a6cbc57a59..b86c8db490ed86180605b8378bf3e65fb9160481 100644 (file)
@@ -232,8 +232,12 @@ static void conn_idle(rlm_radius_udp_connection_t *c)
 
        /*
         *      Still has active requests: it's not idle.
+        *
+        *      Note that Status-Server checks don't count for
+        *      num_requests, but they are still active packets for
+        *      the purpose of idle timeouts.
         */
-       if (c->num_requests > 0) {
+       if ((c->num_requests > 0) || c->status_u->rr->ev) {
                if (c->idle_ev) (void) fr_event_timer_delete(c->thread->el, &c->idle_ev);
                return;
        }