Simon Ruderich
5fb5a2908d
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. |
||
---|---|---|
impl |