<p>In <a href="https://github.com/OpenSIPS/opensips/pull/728#discussion_r48743740">modules/ratelimit/ratelimit_helper.c</a>:</p>
<pre style='color:#555'>> @@ -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__
</pre>
<p>Again, bad programming.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/pull/728/files#r48743740">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOcie1691hVVX-eRUnBhRbtue4-spEaks5pWoxCgaJpZM4G3c6v.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/OpenSIPS/opensips/pull/728/files#r48743740"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>