]> git.puffer.fish Git - mirror/frr.git/commit
lib, vtysh: report lost messages on live log 10749/head
authorDavid Lamparter <equinox@opensourcerouting.org>
Mon, 7 Mar 2022 16:34:17 +0000 (17:34 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Mon, 7 Mar 2022 17:03:16 +0000 (18:03 +0100)
commita4af82ee2b993aadaf35971f4a2097509d798c0f
tree086b11882099257d8cc4cfca2bab01c92cd19236
parent3bcdae106e76f3f7259a1e9c251993ec7e33dc96
lib, vtysh: report lost messages on live log

The vtysh live logs don't try to buffer messages when vtysh isn't
reading them fast enough.  Either the kernel has space and can accept
messages without delay, or it doesn't and we continue on.

While this is intentional (otherwise slow vtysh could block a routing
daemon), at least give the user an indication if messages were dropped.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/zlog_live.c
lib/zlog_live.h
vtysh/vtysh.c