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

Razvan Crainea razvan at opensips.org
Fri Nov 15 11:01:45 CET 2013


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





More information about the Devel mailing list