23 Commits

Author SHA1 Message Date
Sergey Safarov
df1ab07ca4 FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
Chris Rienzo
99e60c290a FS-9965 [mod_hiredis] release context after getting alternate connection 2017-01-23 15:37:13 -05:00
Chris Rienzo
5db04d7d0f FS-9965 [mod_hiredis] Improvements for performance, memory utilization, and resiliency.
Pipelining of requests to improve throughput
     -- new parameter max-pipelined-requests (default 20) for maximum number of requests to batch at one time

   Deletion of counter keys when zero
     -- new parameter delete-when-zero (default false) to enable.  This will cause a redis eval to execute to decrement counters instead of DECR.

   Detection of negative limit counters
     -- Self healing of negative counters (due to key eviction, etc)
2017-01-23 14:39:05 -05:00
Chris Rienzo
8ab65c8c34 FS-9827 [mod_hiredis] handle NIL reply 2016-12-07 14:53:29 -05:00
Chris Rienzo
4a76900edf FS-9737 [mod_hiredis] fix limit_usage when using hiredis backend 2016-11-15 11:04:46 -05:00
Chris Rienzo
ff6ab87f14 FS-9713 [mod_hiredis] handle spurious wakeup while waiting for connection 2016-11-08 13:36:39 -05:00
Chris Rienzo
7e8b8b428c FS-9645 [mod_hiredis] add support for AUTH when profile password is set
add new configuration 'ignore-error' which will not fail limit if an error like auth failure occurs
2016-10-18 15:30:33 -04:00
Josh Allmann
b8d6c4a805 FS-8075 [mod_hiredis]: Reduce log level of a message. 2016-10-06 18:49:36 -04:00
William King
dc13f59ee8 FS-9283 --resolve 2016-06-20 08:59:04 -07:00
Muhammad Zaka
f8b3140fed FS-9156: Code Improvement for the non-interval increment when limit reached 2016-06-02 09:57:17 +01:00
Chris Rienzo
49f1d31290 FS-9058 [mod_hiredis] fix rate counters so the keys expire after interval completes. Do not auto decrement rate counters. Do not log null responses. 2016-04-12 15:23:49 -04:00
Chris Rienzo
7a369b57f1 FS-9059 [mod_hiredis] add session logging 2016-04-12 11:18:11 -04:00
Chris Rienzo
f69fef88b7 FS-9058 [mod_hiredis] allow auto decrement of non-interval limits on channel hangup. 2016-04-12 10:39:09 -04:00
Chris Rienzo
a0f347fca9 FS-9054 [mod_hiredis] add ignore-connect-fail profile param so that calls do not get killed if limit fails due to lost connection 2016-04-12 09:44:17 -04:00
Chris Rienzo
a7465e6cbf FS-9052 [mod_hiredis] add connection pooling, improve dropped connection resiliency, and allow 0.10.0 of hiredis for CentOS 6. 2016-04-11 11:54:46 -04:00
William King
1aa2bf8d77 FS-8978 part two 2016-04-04 22:04:22 -05:00
Phil Lavin
a1ee1a03bf FS-8978: [mod_redis] Fix limit counter not decrementing on hangup
The limit counter value is not automatically decremented in Redis when
the call is hung up. This results in it only ever counting up and the
limit being eventually hit.

The linked list is moved on too early. When `limit_pvt` is checked, it
is `NULL`. This means the `decr` command is never sent to Redis.
2016-03-24 18:38:07 +00:00
William King
a6cbe9034d FS-8377 Fix the handling of hiredis limit release when using an interval. The expectation for interval is to NOT decrement the limit. 2015-11-04 15:14:50 -08:00
William King
39f6d107ac FS-8377 Adding expanded support for limit_* functionality for mod_hiredis 2015-10-21 14:56:21 -07:00
William King
d7724cc2aa FS-8075 Fix for failover when you pull power on redis, while redis clients under load test 2015-09-09 10:39:20 -07:00
William King
8a388131b2 FS-8075 fix typo for dialplan app 2015-09-09 08:59:26 -07:00
William King
16d600c035 FS-8075 updates for limit release case 2015-09-04 14:46:10 -07:00
William King
d1d0f553bc FS-8075
Initial commit of mod_hiredis. Add expanded redis support to include
raw redis command support, as well as the existing support for
FreeSWITCH limits.
2015-08-28 16:56:38 -07:00