You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ma...@apache.org on 2024/03/31 23:49:31 UTC

(trafficserver) branch master updated: rate_limit: Set initialized flag of SieveLru when loading yaml is done (#11181)

This is an automated email from the ASF dual-hosted git repository.

masaori pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 996291d167 rate_limit: Set initialized flag of SieveLru when loading yaml is done (#11181)
996291d167 is described below

commit 996291d16765a31903d083f68067798f56a7b69c
Author: Masaori Koshiba <ma...@apache.org>
AuthorDate: Mon Apr 1 08:49:26 2024 +0900

    rate_limit: Set initialized flag of SieveLru when loading yaml is done (#11181)
---
 plugins/experimental/rate_limit/ip_reputation.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/plugins/experimental/rate_limit/ip_reputation.cc b/plugins/experimental/rate_limit/ip_reputation.cc
index 29c03f0f20..099c3cf9c5 100644
--- a/plugins/experimental/rate_limit/ip_reputation.cc
+++ b/plugins/experimental/rate_limit/ip_reputation.cc
@@ -135,6 +135,8 @@ SieveLru::parseYaml(const YAML::Node &node)
   Dbg(dbg_ctl, "\twith perma-block rule: %s(%u, %u, %ld)", _name.c_str(), _permablock_limit, _permablock_threshold,
       static_cast<long>(_permablock_max_age.count()));
 
+  _initialized = true;
+
   return true;
 }