[sr-dev] git:master: modules_k: ratelimit - removing rl_drop functionality

Henning Westerholt henning.westerholt at 1und1.de
Mon Jul 5 12:29:17 CEST 2010


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



More information about the sr-dev mailing list