From ec763ca3ee065f01ba564cedf687e60064827743 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 23 Oct 2018 09:47:10 +0100 Subject: [Feature] Allow to set custom limits for upstream lists --- src/libutil/upstream.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/libutil/upstream.h') diff --git a/src/libutil/upstream.h b/src/libutil/upstream.h index 3bc2132da..9b5c7794c 100644 --- a/src/libutil/upstream.h +++ b/src/libutil/upstream.h @@ -82,6 +82,24 @@ struct upstream_list* rspamd_upstreams_create (struct upstream_ctx *ctx); void rspamd_upstreams_set_flags (struct upstream_list *ups, enum rspamd_upstream_flag flags); +/** + * Sets custom limits for upstreams + * @param ups + * @param revive_time + * @param revive_jitter + * @param error_time + * @param dns_timeout + * @param max_errors + * @param dns_retransmits + */ +void rspamd_upstreams_set_limits (struct upstream_list *ups, + gdouble revive_time, + gdouble revive_jitter, + gdouble error_time, + gdouble dns_timeout, + guint max_errors, + guint dns_retransmits); + /** * Sets rotation policy for upstreams list * @param ups -- cgit v1.2.3