projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3835b23
)
Fix buffer size for memcached stats answer
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>
src/memcached.c
patch
|
blob
|
history
diff --git
a/src/memcached.c
b/src/memcached.c
index
348591f
..
4c9e6ad
100644
(file)
--- a/
src/memcached.c
+++ b/
src/memcached.c
@@
-358,7
+358,7
@@
static void submit_gauge2 (const char *type, const char *type_inst,
static int memcached_read (void) /* {{{ */
{
- char buf[
1024
];
+ char buf[
4096
];
char *fields[3];
char *ptr;
char *line;