[OpenSIPS-Devel] [opensips] Slot Based Taildrop algorithm for ratelimit (#728)

Răzvan Crainea notifications at github.com
Mon Jan 4 16:50:26 CET 2016


> @@ -920,6 +933,59 @@ void rl_rcv_bin(int packet_type, struct receive_info *ri, int server_id)
>  	RL_RELEASE_LOCK(hash_idx);
>  }
>  
> +/*
> + * same as hist_check() in ratelimit.c but this one
> + * only counts, no updates on the window ==> faster
> + */
> +static inline int hist_count(rl_pipe_t *pipe)
> +{
> +	/* Window ELement*/
> +	#define WEL(__el__) pipe->rwin.__el__

Again, bad programming.

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/pull/728/files#r48743740
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20160104/f75ec91b/attachment-0001.htm>


More information about the Devel mailing list