projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
29e3c6c
)
Auto-Merge pull request #2612 from rpv-tomsk/collectd-5.8-memcached
author
collectd bot
<32910397+collectd-bot@users.noreply.github.com>
Sun, 10 Dec 2017 21:10:59 +0000
(22:10 +0100)
committer
GitHub
<noreply@github.com>
Sun, 10 Dec 2017 21:10:59 +0000
(22:10 +0100)
Automatically merged due to "Automerge" label
src/memcached.c
patch
|
blob
|
history
diff --git
a/src/memcached.c
b/src/memcached.c
index
1cd5a30
..
d2827a4
100644
(file)
--- a/
src/memcached.c
+++ b/
src/memcached.c
@@
-291,6
+291,12
@@
static int memcached_query_daemon(char *buffer, size_t buffer_size,
close(st->fd);
st->fd = -1;
return -1;
+ } else if (status == 0) {
+ ERROR("memcached plugin: Instance \"%s\": Connection closed by peer",
+ st->name);
+ close(st->fd);
+ st->fd = -1;
+ return -1;
}
buffer_fill += (size_t)status;