]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1347570 - Enforce minimum value for apache_size_limit
authorDylan William Hardison <dylan@hardison.net>
Wed, 15 Mar 2017 20:01:20 +0000 (16:01 -0400)
committerDylan William Hardison <dylan@hardison.net>
Wed, 15 Mar 2017 20:01:35 +0000 (16:01 -0400)
mod_perl.pl

index 76d3d4920ea0808efde07ebcbbdb82fb5cc35281..29d9005c353b5d5f44834201d8bd64ee8329b75e 100644 (file)
@@ -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'};