[OpenSIPS-Devel] [OpenSIPS/opensips] e13d06: ratelimit: repurpose the repl_buffer_threshold

Răzvan Crainea noreply at github.com
Fri May 7 11:37:30 EST 2021


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: e13d0620407aa7e9b5a2905f76432e4c940dfc8b
      https://github.com/OpenSIPS/opensips/commit/e13d0620407aa7e9b5a2905f76432e4c940dfc8b
  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.





More information about the Devel mailing list