From 3bd594bda826fab97a7ee6029bae0fca77b1de6a Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Wed, 15 Mar 2017 16:01:20 -0400 Subject: Bug 1347570 - Enforce minimum value for apache_size_limit --- mod_perl.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mod_perl.pl') diff --git a/mod_perl.pl b/mod_perl.pl index 76d3d4920..29d9005c3 100644 --- a/mod_perl.pl +++ b/mod_perl.pl @@ -59,7 +59,11 @@ Bugzilla::CGI->compile(qw(:cgi :push)); # This means that every httpd child will die after processing a request if it # is taking up more than $apache_size_limit of RAM all by itself, not counting RAM it is # sharing with the other httpd processes. -Apache2::SizeLimit->set_max_unshared_size(Bugzilla->localconfig->{apache_size_limit}); +my $limit = Bugzilla->localconfig->{apache_size_limit}; +if ($limit < 400_000) { + $limit = 400_000; +} +Apache2::SizeLimit->set_max_unshared_size($limit); my $cgi_path = Bugzilla::Constants::bz_locations()->{'cgi_path'}; -- cgit v1.2.3-24-g4f1b