0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-23 02:01:55 +00:00
bird/sysdep/unix
Ondrej Zajicek c9ff0627a7 CLI: Fix for long-lived sessions during high loads
When there is a continuos stream of CLI commands, cli_get_command()
always returns 1 (there is a new command). Anyway, the socket receive
buffer was reset only when there was no command at all, leading to a
strange behavior: after a while, the CLI receive buffer came to its end,
then read() was called with zero size buffer, it returned 0 which was
interpreted as EOF.

The patch fixes that by resetting the buffer position after each command
and moving remaining data at the beginning of buffer.

Thanks to Maria Matejka for examining the bug and for the original bugfix.
2024-05-30 12:29:59 +02:00
..
alloc.c Page allocator: Fixed minor bugs and added commentary 2022-11-03 12:38:57 +01:00
config.Y Log: Do not open logfiles when parse-and-exit option is active 2020-06-03 14:59:20 +02:00
Doc Doc: Rename code documentation files back to Doc 2018-12-14 02:03:42 +01:00
endian.h OpenBSD port related changes. 2009-05-11 01:32:49 +02:00
io.c Merge version 2.0.10 into backport 2022-07-10 14:19:24 +02:00
krt.c BSD: Fix krt socket code w.r.t. rte/rta changes 2024-05-30 12:29:59 +02:00
krt.h Merge branch 'master' into backport 2022-07-27 00:47:24 +02:00
krt.Y Dynamic attributes definition split whether it is bitmask or not. 2019-07-03 00:00:11 +02:00
log.c Debug output uses local buffer to avoid clashes between threads. 2021-09-10 17:37:46 +02:00
main.c CLI: Fix for long-lived sessions during high loads 2024-05-30 12:29:59 +02:00
Makefile Simplified the protocol hookup code in Makefiles 2022-08-18 22:07:30 +02:00
random.c sysdep: Add wrapper to get random bytes - update 2021-06-06 16:26:06 +02:00
unix.h BGP: Add support for BGP hostname capability 2021-02-10 16:53:57 +01:00