0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00
bird/sysdep
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
..
bsd IO: Support nonlocal bind in socket interface 2022-01-08 19:02:31 +01:00
cf BSD: Use MSG_DONTROUTE for unicast packets on FreeBSD 2018-07-28 16:54:06 +02:00
linux Netlink: Remove superfluous sysdep/linux/netlink.c.orig 2022-03-16 23:16:26 +01:00
unix CLI fix for long-lived sessions during high loads 2022-07-14 12:09:24 +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