When we use a "MaxPacketSize" over two thousand of octets (to pass huge
message in notification for example), buffer may not be flushed for a
while.
By flushing buffer when there is about 1400 octets, we're sure there is
no data too longer in.
ERROR ("network plugin: Unable to append to the "
"buffer for some weird reason");
}
- else if ((network_config_packet_size - send_buffer_fill) < 15)
+ else if (send_buffer_fill >= 1452 - 15)
{
flush_buffer ();
}