mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-12-04 09:11:02 +01:00
WIP/BUG/MEDIUM: apppet: Improve again spinning loops detection with the new API
This commit is contained in:
parent
7a19fd00b9
commit
b7a0c2ff98
@ -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));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user