[OpenSIPS-Devel] [OpenSIPS/opensips] 3d0d87: rework ratelimit distributed queries

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


  Branch: refs/heads/1.9
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 3d0d8712ffea56e15b1a700ce6b6f130a509794c
      https://github.com/OpenSIPS/opensips/commit/3d0d8712ffea56e15b1a700ce6b6f130a509794c
  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