From: Vsevolod Stakhov Date: Fri, 4 May 2018 12:55:10 +0000 (+0100) Subject: [Minor] Avoid shared memory usage in file scan mode X-Git-Tag: 1.7.5~77 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d09485324dead2461703837228f389711e77c002;p=thirdparty%2Frspamd.git [Minor] Avoid shared memory usage in file scan mode --- diff --git a/src/rspamd_proxy.c b/src/rspamd_proxy.c index 4bdfd56d9e..d94ab6455e 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); }