瀏覽代碼

[Rspamd] Increase task timeout to prevent expensive tasks to cause a timeout; Set max size for macro scans to 3 MiB

andryyy 4 年之前
父節點
當前提交
98a778a059
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      data/conf/rspamd/local.d/external_services.conf
  2. 1 1
      data/conf/rspamd/override.d/worker-normal.inc

+ 1 - 1
data/conf/rspamd/local.d/external_services.conf

@@ -6,5 +6,5 @@ oletools {
   # mime-part regex matching in content-type or filename
   # mime-part regex matching in content-type or filename
   # block all macros
   # block all macros
   extended = true;
   extended = true;
-  max_size = 5242880;
+  max_size = 3145728;
 }
 }

+ 1 - 1
data/conf/rspamd/override.d/worker-normal.inc

@@ -1,4 +1,4 @@
 bind_socket = "*:11333";
 bind_socket = "*:11333";
-task_timeout = 12s;
+task_timeout = 25s;
 count = 1;
 count = 1;
 .include(try=true; priority=30) "$CONFDIR/override.d/worker-normal.custom.inc"
 .include(try=true; priority=30) "$CONFDIR/override.d/worker-normal.custom.inc"