0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-08 12:18:42 +00:00
bird/test
Maria Matejka 8691151dbd 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.

Fixing this by:
* resetting the buffer any time CLI RX gets to EOL
* explicitly refusing to pipeline

In future, we may implement CLI pipelining, yet to make it conveniently,
a push-parser may come handy instead of the current implementation.
2022-07-14 12:09:24 +02:00
..
birdtest.c CLI fix for long-lived sessions during high loads 2022-07-14 12:09:24 +02:00
birdtest.h Filter: Add prefix trie benchmarks 2021-09-25 16:06:43 +02:00
bt-utils.c Test: Improve filter_test 2019-12-17 00:01:53 +01:00
bt-utils.h Unit Testing for BIRD 2016-11-09 16:36:34 +01:00
Makefile Unit Testing for BIRD 2016-11-09 16:36:34 +01:00