From b7a0c2ff983f916c07477db88e1752f86500ed9f Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Thu, 16 Oct 2025 11:22:22 +0200 Subject: [PATCH] WIP/BUG/MEDIUM: apppet: Improve again spinning loops detection with the new API --- src/applet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applet.c b/src/applet.c index 4b55bf9b5..af4e3fe05 100644 --- a/src/applet.c +++ b/src/applet.c @@ -968,7 +968,7 @@ struct task *task_process_applet(struct task *t, void *context, unsigned int sta } /* measure the call rate and check for anomalies when too high */ - if (!did_recv && !did_send) { + if ((!did_recv && sc_is_send_allowed(sc)) && (!did_send && sc_is_recv_allowed(sc))) { rate = update_freq_ctr(&app->call_rate, 1); if (rate >= 100000 && app->call_rate.prev_ctr) // looped like this more than 100k times over last second stream_dump_and_crash(&app->obj_type, read_freq_ctr(&app->call_rate));