[OpenSIPS-Devel] [OpenSIPS/opensips] 973aa0: rework ratelimit distributed queries

Razvan Crainea razvan at opensips.org
Fri Nov 15 11:02:32 CET 2013


  Branch: refs/heads/1.8
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 973aa0d409bb2989b7dee0bb0d73a1de95b1a298
      https://github.com/OpenSIPS/opensips/commit/973aa0d409bb2989b7dee0bb0d73a1de95b1a298
  Author: Razvan Crainea <razvan at opensips.org>
  Date:   2013-11-15 (Fri, 15 Nov 2013)

  Changed paths:
    M modules/ratelimit/ratelimit_helper.c

  Log Message:
  -----------
  rework ratelimit distributed queries

instead of adding -1 to the counter, use the cachedb_sub function exported by
the cachedb module. This prevents ratelimit counters from adding extremely
large values for some backends (ex: memcached).
Thanks go to Brett Nemeroff for reporting and testing.

(cherry picked from commit c06183325e408f47ba4e0a1e1be274fe23581e25)





More information about the Devel mailing list