]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: stream-int: make sure to always release empty buffers after sending
authorWilly Tarreau <w@1wt.eu>
Thu, 1 Aug 2019 12:17:02 +0000 (14:17 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 1 Aug 2019 12:34:01 +0000 (14:34 +0200)
commita64c703374455032359cc566d676525f989da14a
treeef8a9ba86146ec7d392e7f02981469ba8faa4821
parent458eafb36df88932a02d1ce7ca31832abf11b8b3
BUG/MINOR: stream-int: make sure to always release empty buffers after sending

There are some situations, after sending a request or response, upon I/O
completion, or applet execution, where we end up with an empty buffer that
was not released. This results in excessive memory usage (back to 1.5) and
a lower CPU cache efficiency since buffers are not recycled as fast. This
has changed since the places where we send have changed with the new
layering, but not all cases susceptible of leaving an empty buffer were
properly spotted. Doing so reduces the memory pressure on buffers by about
2/3 in high traffic tests.

This should be backported to 2.0 and maybe 1.9.
src/stream_interface.c