From d09485324dead2461703837228f389711e77c002 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 4 May 2018 13:55:10 +0100 Subject: [PATCH] [Minor] Avoid shared memory usage in file scan mode --- src/rspamd_proxy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rspamd_proxy.c b/src/rspamd_proxy.c index 4bdfd56d9..d94ab6455 100644 --- a/src/rspamd_proxy.c +++ b/src/rspamd_proxy.c @@ -1438,6 +1438,7 @@ proxy_open_mirror_connections (struct rspamd_proxy_session *session) } else { if (session->fname) { + msg->flags &= ~RSPAMD_HTTP_FLAG_SHMEM; rspamd_http_message_set_body (msg, session->map, session->map_len); } @@ -1868,6 +1869,7 @@ retry: } else { if (session->fname) { + msg->flags &= ~RSPAMD_HTTP_FLAG_SHMEM; rspamd_http_message_set_body (msg, session->map, session->map_len); } -- 2.39.5