]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: cli: use global.maxsock and not maxfd to list all FDs
authorWilly Tarreau <w@1wt.eu>
Mon, 29 Jan 2018 14:17:05 +0000 (15:17 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 29 Jan 2018 14:18:54 +0000 (15:18 +0100)
commitccea35c9800756f867aff8ec2752fa75480ac345
tree1c78602aadf7f9162af27a7e82e9cc937bb7b67b
parenta41d531e4e8d80948b503f4b310259abbaf7aa5f
BUG/MINOR: cli: use global.maxsock and not maxfd to list all FDs

The "show fd" command on the CLI doesn't list the last FD in use since
it doesn't include maxfd. We don't need to use maxfd here anyway as
global.maxsock will do the job pretty well and removes this dependency.
This patch may be backported to 1.8.
src/cli.c