summaryrefslogtreecommitdiffstats
path: root/mod_perl.pl
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-03-15 21:01:20 +0100
committerDylan William Hardison <dylan@hardison.net>2017-03-15 21:01:35 +0100
commit3bd594bda826fab97a7ee6029bae0fca77b1de6a (patch)
tree339919a3fe7777ab9e81d6757c3498640cfb9024 /mod_perl.pl
parent5bfe41db82130ca568c9b57cb71f357b9a93b066 (diff)
downloadbugzilla-3bd594bda826fab97a7ee6029bae0fca77b1de6a.tar.gz
bugzilla-3bd594bda826fab97a7ee6029bae0fca77b1de6a.tar.xz
Bug 1347570 - Enforce minimum value for apache_size_limit
Diffstat (limited to 'mod_perl.pl')
-rw-r--r--mod_perl.pl6
1 files changed, 5 insertions, 1 deletions
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'};