]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mworker/cli: 'show proc' is limited by buffer size
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 8 Dec 2025 17:05:36 +0000 (18:05 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Tue, 9 Dec 2025 15:09:10 +0000 (16:09 +0100)
commit594408cd612b5d80b7120d8a4f157f928ed38710
tree2f47e3935ce265bef8fba1dbc7ffc6910a3592d7
parentdabe8856ad45afb3c7a24effd1716d4924d32797
BUG/MINOR: mworker/cli: 'show proc' is limited by buffer size

In ticket #3204, it was reported that "show proc" is not able to display
more than 202 processes. Indeed the bufsize is 16k by default in the
master, and can't be changed anymore since 3.1.

This patch allows the 'show proc' to start again to dump when the buffer
is full, based on the timestamp of the last PID it attempted to dump.
Using pointers or count the number of processes might not be a good idea
since the list can change between calls.

Could be backported in all stable branche.
src/mworker.c