0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-09-16 18:35:19 +00:00
bird/sysdep
Ondrej Zajicek 4c19a8a984 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.
2022-12-10 17:32:42 +01:00
..
bsd BSD: Fix krt socket code w.r.t. rte/rta changes 2022-11-30 02:43:39 +01:00
cf Netlink on FreeBSD support 2022-12-09 16:01:30 +01:00
linux Netlink on FreeBSD support 2022-12-09 16:01:30 +01:00
unix CLI: Fix for long-lived sessions during high loads 2022-12-10 17:32:42 +01: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