]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: cli/fd: don't isolate the thread for each individual fd
authorWilly Tarreau <w@1wt.eu>
Tue, 18 Dec 2018 14:45:11 +0000 (15:45 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 18 Dec 2018 14:45:11 +0000 (15:45 +0100)
commitca1b15743f87c5b7fe8aaf0ea16e05959487929c
tree18fa04f13295471a047b0574f72e7fc91ef8e3f6
parent3af3771bf3cdb6639565f186dc857202fb7ca0bf
BUG/MINOR: cli/fd: don't isolate the thread for each individual fd

It takes ages to proceed with "show fd" when there is sustained activity
because it uses the rendez-vous point for each and every file descriptor
in the loop. It's very common to see socat timeout there.

Instead of doing this, let's just isolate the function when entering the
loop. Its duration is limited by the number of FDs that may be emitted in
a single buffer anyway, so it's much lighter and responds much faster.
src/cli.c