From: Alan T. DeKok Date: Sat, 12 Aug 2017 16:07:17 +0000 (+0200) Subject: don't set idle timeout if we're doing Status-Server checks X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3db4ef376c71aee29a69e300e0344ccc39ad5df2;p=thirdparty%2Ffreeradius-server.git don't set idle timeout if we're doing Status-Server checks --- diff --git a/src/modules/rlm_radius/rlm_radius_udp.c b/src/modules/rlm_radius/rlm_radius_udp.c index 10c78231ad9..b86c8db490e 100644 --- a/src/modules/rlm_radius/rlm_radius_udp.c +++ b/src/modules/rlm_radius/rlm_radius_udp.c @@ -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; }