From: Mike Stepanek (mstepane) Date: Mon, 23 Mar 2020 13:18:40 +0000 (+0000) Subject: Merge pull request #2090 in SNORT/snort3 from ~MASHASAN/snort3:idle_reload to master X-Git-Tag: 3.0.0-270~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d11f1a6199ba2f8d9000cf28c8d27ed51dcba4a;p=thirdparty%2Fsnort3.git Merge pull request #2090 in SNORT/snort3 from ~MASHASAN/snort3:idle_reload to master Squashed commit of the following: commit 77d0b2b990780864d9c6a3f67d076a9f14a216ea Author: Masud Hasan Date: Thu Mar 19 12:34:45 2020 -0400 reload: Setting higher maximum pruning when idle --- diff --git a/src/main/snort_config.h b/src/main/snort_config.h index a34264b77..7bf773e7a 100644 --- a/src/main/snort_config.h +++ b/src/main/snort_config.h @@ -161,7 +161,8 @@ class ReloadResourceTuner { public: static const unsigned RELOAD_MAX_WORK_PER_PACKET = 3; - static const unsigned RELOAD_MAX_WORK_WHEN_IDLE = 10; + // be aggressive when idle as analyzer gets chance once in every second only due to daq timeout + static const unsigned RELOAD_MAX_WORK_WHEN_IDLE = 32767; virtual ~ReloadResourceTuner() = default;