[OpenSIPS-Devel] [OpenSIPS/opensips] 5cdfed: ratelimit: repurpose the repl_buffer_threshold
Răzvan Crainea
noreply at github.com
Fri May 7 11:37:54 EST 2021
Branch: refs/heads/3.1
Home: https://github.com/OpenSIPS/opensips
Commit: 5cdfedebbe04c50cf740489726c22775ee378434
https://github.com/OpenSIPS/opensips/commit/5cdfedebbe04c50cf740489726c22775ee378434
Author: Razvan Crainea <razvan at opensips.org>
Date: 2021-05-07 (Fri, 07 May 2021)
Changed paths:
M modules/ratelimit/doc/ratelimit_admin.xml
M modules/ratelimit/ratelimit.h
M modules/ratelimit/ratelimit_helper.c
Log Message:
-----------
ratelimit: repurpose the repl_buffer_threshold
Instead of defaulting it to MTU (due to an old datagram limitation), we
should use a higher value, that would only control the fragmentation of
the send buffer.
Moreover, do not send the buffer to the clusters nodes under lock,
since it might block, thus block the entire ratelimit function.
(cherry picked from commit e13d0620407aa7e9b5a2905f76432e4c940dfc8b)
More information about the Devel
mailing list