[OpenSIPS-Devel] [OpenSIPS/opensips] 9621ca: ratelimit: keep only local values in pipe->counter...

Răzvan Crainea noreply at github.com
Tue Dec 22 08:57:59 EST 2020


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 9621cac2033308e1d386103a229702750ffb005b
      https://github.com/OpenSIPS/opensips/commit/9621cac2033308e1d386103a229702750ffb005b
  Author: Razvan Crainea <razvan at opensips.org>
  Date:   2020-12-22 (Tue, 22 Dec 2020)

  Changed paths:
    M modules/ratelimit/ratelimit.c

  Log Message:
  -----------
  ratelimit: keep only local values in pipe->counter for SBT

Up until this commit, the SBT algorithm would keep in pipe->counter the
sum between its local value, as well as the values gathered from the
other servers in the cluster. This means that it would replicate the
other's counters as well, leading to a broken behavior.
This fix makes sure that the SBT algorithm only stores the local counter
in the pipe->counter field, therefore it will not replicate other's
counters.





More information about the Devel mailing list