Hello Henning,
I will add an example to the README file. My goal was to remove the dependency on the sl module. The ratelimit module is now ready to be migrated from modules_k to modules.
Regards, Ovidiu Sas
On Mon, Jul 5, 2010 at 6:29 AM, Henning Westerholt henning.westerholt@1und1.de wrote:
On Saturday 03 July 2010, Ovidiu Sas wrote:
modules_k: ratelimit - removing rl_drop functionality
- rl_drop is now obsolete: same functionality can be achieved by invoking: append_to_reply("Retry-After: 5\r\n"); sl_send_reply("503","Limiting");
Hi Ovidiu,
if you like to achive the existing functionality of rl_drop with a random Retry-After, you additionally need to use the $RANDOM PV with from cfgutils with e.g. a modulo operation in the script.
Cheers,
Henning