commit 67baaad: [Minor] Show long compilation warning
Vsevolod Stakhov
vsevolod at highsecure.ru
Thu Feb 27 15:35:28 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-02-27 15:07:56 +0000
URL: https://github.com/rspamd/rspamd/commit/67baaadfa3556aa4bd257a7c52e5cd5eedfbade1
[Minor] Show long compilation warning
---
src/libserver/url.c | 5 +++++
1 file changed, 5 insertions(+)
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);
More information about the Commits
mailing list