The previous code was broken: The response was read using `read(2)'. If
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 14 Sep 2008 15:28:34 +0000 (15:28 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 14 Sep 2008 15:28:34 +0000 (15:28 +0000)
commitbfe17937473b1b69f0a0af5797d22205048ff416
treee01044b7de373b1570fe6e84b8c17ace975a8602
parenta12627275ff8487174cbb907a066f62a00b6ae44
The previous code was broken: The response was read using `read(2)'. If
the server wasn't sending fast enough, the client would stop reading
before the entire message had been read.

This patch changes the communication code to use the (line based)
`fgets' function rather than the lower level `read' function. After
reading the first line (which contains the total number of line to be
expected), this precise number of lines is read - blocking if necessary.

Also, the missing four new statistic values have been added to
`rrdc_stats_get'.
--Folorian Forester

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1506 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_client.c