Simon Ruderich
26786a8569
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. |
||
---|---|---|
.. | ||
layer1 | ||
layer2 | ||
sdr | ||
config.h | ||
debug_structs.h | ||
jsonlogger.c | ||
jsonlogger.h | ||
main.c | ||
options.c | ||
options.h | ||
results.h | ||
utils.c | ||
utils.h | ||
var_array.c | ||
var_array.h |