aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_file.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-21 13:33:49 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-21 15:04:01 +0100
commitd145c09388867031cff47e35bca74effd6c25fe8 (patch)
tree1a38ee94da419e2bed905b94fdeb98b170261932 /src/libserver/cfg_file.h
parent2b2c4414ae050ac7f3cfe67aa8b20061dd5bcd5c (diff)
downloadrspamd-d145c09388867031cff47e35bca74effd6c25fe8.tar.gz
rspamd-d145c09388867031cff47e35bca74effd6c25fe8.zip
Add constraints to dns requests ammount per task.
Diffstat (limited to 'src/libserver/cfg_file.h')
-rw-r--r--src/libserver/cfg_file.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h
index da7c3088b..e2c43845a 100644
--- a/src/libserver/cfg_file.h
+++ b/src/libserver/cfg_file.h
@@ -254,6 +254,7 @@ struct rspamd_config {
guint32 dns_throttling_time; /**< time in seconds for DNS throttling */
guint32 dns_io_per_server; /**< number of sockets per DNS server */
GList *nameservers; /**< list of nameservers or NULL to parse resolv.conf */
+ guint32 dns_max_requests; /**< limit of DNS requests per task */
guint upstream_max_errors; /**< upstream max errors before shutting off */
gdouble upstream_error_time; /**< rate of upstream errors */