Ein SDR-Projekt für IP-Datenübertragung auf dem 70cm-Band. Die Implementierung basiert auf Liquid-DSP.
Go to file
Simon Ruderich 5fb5a2908d jsonlogger: increase pipe buffer to reduce likelihood of corrupted messages
Our JSON messages can get rather large which can cause a buffer overrun
when the reading program is not scheduled at the same time. When the
kernel returns EAGAIN we abort writing the current JSON message.
However, the unfinished (and thus invalid) JSON message is still in the
pipe and will be processed by the reading program.

Increase the pipe buffer from the default 65536 to reduce the likelihood
of this happening. It's difficult to completely prevent the issue as we
don't want to slow down the main program due to slow logging.
2024-05-28 08:51:56 +02:00
impl jsonlogger: increase pipe buffer to reduce likelihood of corrupted messages 2024-05-28 08:51:56 +02:00