plugin, including `extended naming', collection of voltage values
and the possibility to ignore certain values.
+2006-12-21, Version 3.10.4
+ * Max Kellermann has identified a bug in the server routine: When
+ opening a socket fails the daemon will (re)try opening the socket in
+ an endless loop, ultimately leading to a `EMFILE' error.
+
2006-11-04, Version 3.10.3
* Lubos Stanek has identified a bug in the ntpd-plugin: When the
ntpd's reply was sent in more than one packet, the buffer size was
dnl Process this file with autoconf to produce a configure script.
-AC_INIT(collectd, 3.10.3)
+AC_INIT(collectd, 3.10.4)
AC_CONFIG_SRCDIR(src/collectd.c)
AC_CONFIG_HEADERS(src/config.h)
AM_INIT_AUTOMAKE(dist-bzip2)
+collectd (3.10.4-0octo1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Florian Forster <octo@leeloo.home.verplant.org> Thu, 21 Dec 2006 20:36:37 +0100
+
collectd (3.10.3-0octo1) unstable; urgency=low
* New upstream release.
#if HAVE_LIBRRD
static int start_server (void)
{
- /* FIXME use stack here! */
char *host;
char *type;
char *instance;
char *values;
- while (loop == 0)
+ int error_counter = 0;
+ int status;
+
+ while ((loop == 0) && (error_counter < 3))
{
- if (network_receive (&host, &type, &instance, &values) == 0)
- plugin_write (host, type, instance, values);
+ status = network_receive (&host, &type, &instance, &values);
+
+ if (status != 0)
+ {
+ if (status < 0)
+ error_counter++;
+ continue;
+ }
+ error_counter = 0;
+
+ plugin_write (host, type, instance, values);
if (host != NULL) free (host); host = NULL;
if (type != NULL) free (type); type = NULL;
{
if (network_bind_socket (se, ai_ptr) != 0)
{
+ close (se->fd);
free (se->addr);
free (se);
continue;
{
syslog (LOG_WARNING, "Invalid message from `%s'", *host);
free (*host); *host = NULL;
- return (-1);
+ return (1);
}
if ((*type = strdup (fields[0])) == NULL)