[OpenSIPS-Devel] [OpenSIPS/opensips] d430c1: ratelimit: proper expire for replicated pipes
Răzvan Crainea
noreply at github.com
Tue Aug 17 10:40:31 UTC 2021
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: d430c1ae8e77bc0ae2d2eb0ac4eb31d779a8101f
https://github.com/OpenSIPS/opensips/commit/d430c1ae8e77bc0ae2d2eb0ac4eb31d779a8101f
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.
More information about the Devel
mailing list