]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: cli: Atomically inc the global request counter between CLI commands
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 16 Jul 2024 12:42:20 +0000 (14:42 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 18 Jul 2024 14:39:38 +0000 (16:39 +0200)
commit3cdb3fa5d95afc33465f894640217ff87b0c0562
tree8d94f72e4ea22676eb8aa999cfc9b2f397503134
parentabaafda4850c64183bb69d6a62675b7405993f4a
BUG/MINOR: cli: Atomically inc the global request counter between CLI commands

The global request counter is used to set the stream id (s->uniq_id). It is
incremented at different places. And it must be atomically incremented
because it is a global value. However, in the analyer dealing with CLI
command response, this was not the case. It is now fixed.

This patch must be backported to all stable versions.
src/cli.c