From: loginator17 Date: Mon, 27 Oct 2014 13:00:04 +0000 (+0000) Subject: Update write_http.c X-Git-Tag: collectd-5.5.0~57^2~4^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=fc1c7d7583eefd8fc3f2740015e5665dffe3e7c9;p=collectd.git Update write_http.c Changing default post timeout to plugin's interval and fixing low speed interval to use correct method for plugin interval (plugin_get_interval()) --- diff --git a/src/write_http.c b/src/write_http.c index b36a6978..a48cdf33 100644 --- a/src/write_http.c +++ b/src/write_http.c @@ -607,7 +607,12 @@ static int wh_config_url (oconfig_item_t *ci) /* {{{ */ if(cb->abort_on_slow) { - cb->interval = CDTIME_T_TO_TIME_T(cf_get_default_interval ()); + cb->interval = CDTIME_T_TO_TIME_T(plugin_get_interval()); + } + if(cb->post_timeout == 0) + { + //setting default timeout to plugin interval. + cb->post_timeout = CDTIME_T_TO_TIME_T(plugin_get_interval()); } /* Determine send_buffer_size. */