aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-02-27 15:07:56 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-02-27 15:07:56 +0000
commit67baaadfa3556aa4bd257a7c52e5cd5eedfbade1 (patch)
tree5ed933dc92e13c7fc679c62dc911a1907217826a
parent97217d7bfc4eb37863e789bab9e01c0b77f759ef (diff)
downloadrspamd-67baaadfa3556aa4bd257a7c52e5cd5eedfbade1.tar.gz
rspamd-67baaadfa3556aa4bd257a7c52e5cd5eedfbade1.zip
[Minor] Show long compilation warning
-rw-r--r--src/libserver/url.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libserver/url.c b/src/libserver/url.c
index 3c3dc4546..f4c5783ab 100644
--- a/src/libserver/url.c
+++ b/src/libserver/url.c
@@ -536,6 +536,11 @@ rspamd_url_init (const gchar *tld_file)
ret = rspamd_url_parse_tld_file (tld_file, url_scanner);
}
+ if (url_scanner->matchers->len > 1000) {
+ msg_info ("start compiling of %d TLD suffixes; it might take a long time",
+ url_scanner->matchers->len);
+ }
+
if (!rspamd_multipattern_compile (url_scanner->search_trie, &err)) {
msg_err ("cannot compile tld patterns, url matching will be "
"broken completely: %e", err);