]> git.ipfire.org Git - thirdparty/openvpn.git/commit
management: stop bytecount on client disconnection
authorRalf Lici <ralf@mandelbit.com>
Tue, 2 Sep 2025 16:35:09 +0000 (18:35 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 2 Sep 2025 17:04:29 +0000 (19:04 +0200)
commitfccdb21733d2826bcdc080fdfa93b0283b5231b8
tree49e903c389a3d8be59affbafb74a81790a237148
parent14ced61eef89797e606c3b7600adc4da83a336f4
management: stop bytecount on client disconnection

When a management interface client requests periodic bytecount
notifications, openvpn continues to emit them even after the client has
disconnected. Additionally, upon reconnecting, the client starts
receiving these notifications without having issued a new bytecount
command.

Stop the periodic bytecount operation when the management interface
client disconnects, preventing unnecessary stats polling when using DCO
and ensuring that clients only receive notifications they have
explicitly requested.

Change-Id: I1474d232278433d097baf85352dfc9a79853bad1
Signed-off-by: Ralf Lici <ralf@mandelbit.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20250902163514.22339-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg32765.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/manage.c