From: Vsevolod Stakhov Date: Thu, 27 Feb 2020 15:07:56 +0000 (+0000) Subject: [Minor] Show long compilation warning X-Git-Tag: 2.5~113 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=67baaadfa3556aa4bd257a7c52e5cd5eedfbade1;p=thirdparty%2Frspamd.git [Minor] Show long compilation warning --- diff --git a/src/libserver/url.c b/src/libserver/url.c index 3c3dc45462..f4c5783abb 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);