From fc1c7d7583eefd8fc3f2740015e5665dffe3e7c9 Mon Sep 17 00:00:00 2001 From: loginator17 Date: Mon, 27 Oct 2014 13:00:04 +0000 Subject: [PATCH] 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()) --- src/write_http.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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. */ -- 2.11.0