]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Show long compilation warning
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 27 Feb 2020 15:07:56 +0000 (15:07 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 27 Feb 2020 15:07:56 +0000 (15:07 +0000)
src/libserver/url.c

index 3c3dc45462584670efe04f471dafebe98ee101dd..f4c5783abb87654a858668fe2eaa0775e08a95a4 100644 (file)
@@ -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);