X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fwrite_riemann.c;h=328341ea0e0fe9234feb8f6c5124379725f5bff9;hb=a359afebf9e55cdb46b445e3d46d728a4d6fe992;hp=0a8df6fe30ae498022fb5359ec6b9597c2d8d09f;hpb=b49d4e33978d4c9508b68e931a7a27773f0348e1;p=collectd.git diff --git a/src/write_riemann.c b/src/write_riemann.c index 0a8df6fe..328341ea 100644 --- a/src/write_riemann.c +++ b/src/write_riemann.c @@ -854,10 +854,10 @@ static int riemann_config_node(oconfig_item_t *ci) /* {{{ */ host->check_thresholds = 0; host->store_rates = 1; host->always_append_ds = 0; - host->use_tcp = 0; - host->batch_mode = 0; - host->batch_max = RIEMANN_BATCH_MAX; /* typical MSS */ - host->batch_init = cdtime(); + host->use_tcp = 1; + host->batch_mode = 1; + host->batch_max = RIEMANN_BATCH_MAX; /* typical MSS */ + host->batch_init = cdtime(); host->ttl_factor = RIEMANN_TTL_FACTOR; status = cf_util_get_string (ci, &host->name); @@ -1051,6 +1051,7 @@ static int riemann_config(oconfig_item_t *ci) /* {{{ */ } if ((val = strdup(child->values[1].value.string)) == NULL) { WARNING("cannot allocate memory for attribute value."); + sfree (key); return (-1); } strarray_add(&riemann_attrs, &riemann_attrs_num, key);