aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/upstream.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-23 09:47:10 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-23 09:47:10 +0100
commitec763ca3ee065f01ba564cedf687e60064827743 (patch)
treed7d7ae4619fb742db5e4cd36a0c111ee312d9427 /src/libutil/upstream.h
parente57ce2fe1bb47ef0d5f5d075812ef29c965e0f38 (diff)
downloadrspamd-ec763ca3ee065f01ba564cedf687e60064827743.tar.gz
rspamd-ec763ca3ee065f01ba564cedf687e60064827743.zip
[Feature] Allow to set custom limits for upstream lists
Diffstat (limited to 'src/libutil/upstream.h')
-rw-r--r--src/libutil/upstream.h18
1 files changed, 18 insertions, 0 deletions
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
@@ -83,6 +83,24 @@ 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
* @param rot