[OpenSIPS-Devel] [OpenSIPS/opensips] c266e8: ratelimit: proper expire for replicated pipes
Răzvan Crainea
noreply at github.com
Tue Aug 17 10:41:00 UTC 2021
Branch: refs/heads/3.1
Home: https://github.com/OpenSIPS/opensips
Commit: c266e8c87d904cfdbc8b0341788b81350b44f70a
https://github.com/OpenSIPS/opensips/commit/c266e8c87d904cfdbc8b0341788b81350b44f70a
Author: Razvan Crainea <razvan at opensips.org>
Date: 2021-08-17 (Tue, 17 Aug 2021)
Changed paths:
M modules/ratelimit/ratelimit.h
M modules/ratelimit/ratelimit_helper.c
Log Message:
-----------
ratelimit: proper expire for replicated pipes
Instead of updating the last_used on every received pipe, we shall only
consider the last locally used value when we want to expire. This way,
we only replicate pipes that have been locally used recently, if the
ones that are not, will not be replicated, thus will eventually be
deleted by the backup nodes.
Thanks go to Ken Rice (SIPNav) for reporting this and troubleshooting
the problem.
(cherry picked from commit d430c1ae8e77bc0ae2d2eb0ac4eb31d779a8101f)
More information about the Devel
mailing list