[collectd] [BUG + patch] Collectd::Unixsock.pm sends too long messages
Pavel V.
pavel2000 at ngs.ru
Sun Mar 31 17:56:55 CEST 2013
Hi, Collectd community.
After my upgrade I found an issue, what collection3 FLUSH does not work on some graphs.
I got the following message in my webserver logs about this:
index.cgi: FLUSH failed: Parsing options failed. at ../lib/Collectd/Graph/Common.pm
While debugging I found what unixsock.c plugin has limited buffer size of 1024 bytes when reading
received data, but Collectd::Graph::Common::flush_files() and Collectd::Unixsock::flush() tries to
flush all files at once, which results to excessive data being sent via socket. This ends by error
message which is described above.
I'm glad to propose a patch to fix this issue, see attached file.
Thanks.
--
Regards,
Pavel mailto:pavel2000 at ngs.ru
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Unixsock.pm.patch
Type: application/octet-stream
Size: 2039 bytes
Desc: not available
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20130331/2ac3305d/attachment.obj>
More information about the collectd
mailing list