summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3835b23)
raw | patch | inline | side by side (parent: 3835b23)
author | Timon <timosha@gmail.com> | |
Tue, 28 Feb 2012 11:10:35 +0000 (17:10 +0600) | ||
committer | Florian Forster <octo@collectd.org> | |
Tue, 28 Feb 2012 17:13:06 +0000 (18:13 +0100) |
Typical stats answer has ~1900 bytes length.
$ memcached-tool localhost:11211 stats | wc -c
1863
But buffer for this answer was only 1024 bytes length.
Signed-off-by: Florian Forster <octo@collectd.org>
$ memcached-tool localhost:11211 stats | wc -c
1863
But buffer for this answer was only 1024 bytes length.
Signed-off-by: Florian Forster <octo@collectd.org>
src/memcached.c | patch | blob | history |
diff --git a/src/memcached.c b/src/memcached.c
index 348591fd160b79c0f64308732698e79ec9ab4789..4c9e6adcb34e8eba28ca2883a2056920274d1c8f 100644 (file)
--- a/src/memcached.c
+++ b/src/memcached.c
static int memcached_read (void) /* {{{ */
{
- char buf[1024];
+ char buf[4096];
char *fields[3];
char *ptr;
char *line;