bird/nest
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
..
Doc Doc: Rename code documentation files back to Doc 2018-12-14 02:03:42 +01:00
Makefile Simplified the protocol hookup code in Makefiles 2022-08-18 22:07:30 +02:00
a-path.c Merge remote-tracking branch 'origin/master' into backport 2022-07-11 11:08:10 +02:00
a-path_test.c Merge remote-tracking branch 'origin/master' into backport 2022-07-11 11:08:10 +02:00
a-set.c Filter: Implement for loops 2022-06-27 21:13:32 +02:00
a-set_test.c Fixed resource initialization in unit tests 2022-03-09 10:30:42 +01:00
attrs.h Filter: Add some minor functions for f_tree and EC 2022-10-03 20:18:12 +02:00
bfd.h BFD: Allow per-request session options 2020-11-08 15:33:22 +01:00
bird.h Initial commit on integrated BIRD 2015-11-05 12:48:52 +01:00
cli.c CLI: Fix continuation lines after final one 2019-11-26 16:43:09 +01:00
cli.h CLI: Fix for long-lived sessions during high loads 2022-12-10 17:32:42 +01:00
cmds.c Moved config-related allocations to config_pool and showing its size in memory usage 2022-11-01 16:38:24 +01:00
cmds.h Filter refactoring: dropped the recursion from the interpreter 2019-02-20 22:30:54 +01:00
config.Y Doc: Add documentation for "show route (import|export) table" 2022-10-18 04:25:29 +02:00
iface.c Nest: Do not ignore secondary flag changes in ifa updates 2021-12-18 01:09:52 +01:00
iface.h Nest: Fix neighbor handling for colliding ranges 2020-05-11 04:29:36 +02:00
locks.c Lib: Add and use ev_new_init() 2018-10-01 15:55:23 +02:00
locks.h Nest: VRF support for neighbor cache and olock code 2017-09-12 15:49:36 +02:00
neighbor.c Slab allocator can free the blocks without knowing the parent structure 2022-04-06 18:14:08 +02:00
password.c Nest: Allow MAC algorithms to specify min/max key length 2021-06-06 16:28:18 +02:00
password.h Nest: Allow MAC algorithms to specify min/max key length 2021-06-06 16:28:18 +02:00
proto-hooks.c Dropping rte-local dumper entries 2021-10-13 19:09:05 +02:00
proto.c Nest: Add channel config flag to distinguish new or copy 2022-10-03 20:18:12 +02:00
proto.sgml Channels - explicit links between protocols and tables 2016-02-01 10:28:50 +01:00
protocol.h Nest: Add channel config flag to distinguish new or copy 2022-10-03 20:18:12 +02:00
route.h Revert "Export table: Delay freeing of old stored route." 2022-07-22 15:37:21 +02:00
rt-attr.c Unsetting route attributes without messing with type system 2022-04-06 18:14:08 +02:00
rt-dev.c Protocols have their own explicit init routines 2022-04-06 18:14:08 +02:00
rt-dev.h Nest: SADR support for Direct 2018-03-18 02:56:51 +01:00
rt-fib.c Slab allocator can free the blocks without knowing the parent structure 2022-04-06 18:14:08 +02:00
rt-show.c Merge commit 'beb5f78a' into backport 2022-07-11 10:41:17 +02:00
rt-table.c Nest: Avoid spurious announcements triggered by filtered routes 2022-12-06 19:51:50 +01:00