aboutsummaryrefslogtreecommitdiffstats
path: root/src/dns.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-03-23 17:08:58 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-03-23 17:08:58 +0300
commit689855e2bb5a1c911bab1f71da9aa963a8da62a2 (patch)
treebe0ceaeb9aa5107ef8807625a06a1ff400e54994 /src/dns.h
parent4aa3b704739e3398402fbbef1216ae588ff9be2e (diff)
downloadrspamd-689855e2bb5a1c911bab1f71da9aa963a8da62a2.tar.gz
rspamd-689855e2bb5a1c911bab1f71da9aa963a8da62a2.zip
* Add throttling detection mechanic for dns resolver
* Improve phishing module adding ability to define 'strict' phishing domains
Diffstat (limited to 'src/dns.h')
-rw-r--r--src/dns.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dns.h b/src/dns.h
index 9896a6fa4..67cb50e9f 100644
--- a/src/dns.h
+++ b/src/dns.h
@@ -49,7 +49,12 @@ struct rspamd_dns_resolver {
struct dns_k_permutor *permutor; /**< permutor for randomizing request id */
guint request_timeout;
guint max_retransmits;
+ guint max_errors;
memory_pool_t *static_pool; /**< permament pool (cfg_pool) */
+ gboolean throttling; /**< dns servers are busy */
+ guint errors; /**< resolver errors */
+ struct timeval throttling_time; /**< throttling time */
+ struct event throttling_event; /**< throttling event */
};
struct dns_header;