0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-09-19 20:05:21 +00:00
bird/sysdep
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
..
bsd BSD: Fix krt socket code w.r.t. rte/rta changes 2024-05-30 12:29:59 +02:00
cf Netlink on FreeBSD support 2024-05-30 12:29:59 +02:00
linux Netlink on FreeBSD support 2024-05-30 12:29:59 +02:00
unix CLI: Fix for long-lived sessions during high loads 2024-05-30 12:29:59 +02:00
config.h NEWS and version update 2022-06-16 02:58:37 +02:00
Doc Doc: Rename code documentation files back to Doc 2018-12-14 02:03:42 +01:00
sysdep.sgml Spelling fixes to progdoc. 2000-06-07 12:29:08 +00:00