Closed tmcnag closed 7 years ago
I could maybe make variable-length but backward-compatible buffers like I did for NRPE. We'll have to discuss internally.
We aren't going to fix this, as it really isn't that cumbersome to require someone maintain the same MAX_PLUGINOUTPUT_LENGTH
on the clients on which they compile from source.
send_nsca and nsca always work on a static packet whose size is determined at compile time. They send/receive this packet in full, even if most of it is garbage, and compute the CRC32 over the whole of this packet.
if client and server were compiled with a different MAX_PLUGINOUTPUT_LENGTH, they won't be able to cooperate because the CRC32 will always be wrong.
Would it be possible to modify the code to allow different size in the client and server, without breaking the functionality ?
The issue showed up when I patched nsca 2.7.2 with a MAX_PLUGINOUTPUT_LENGTH of 8k to match nagios value. See https://bugzilla.redhat.com/show_bug.cgi?id=497847 for details.