[OpenSIPS-Devel] [OpenSIPS/opensips] f312ea: ratelimit: proper expire for replicated pipes
Răzvan Crainea
noreply at github.com
Tue Aug 17 10:40:47 UTC 2021
Branch: refs/heads/3.2
Home: https://github.com/OpenSIPS/opensips
Commit: f312eaa1dc89606d3e84c7819f079b8e76fe4dd0
https://github.com/OpenSIPS/opensips/commit/f312eaa1dc89606d3e84c7819f079b8e76fe4dd0
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