summaryrefslogtreecommitdiffstats
path: root/mod_perl.pl
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-01-09 04:53:11 +0100
committerByron Jones <bjones@mozilla.com>2013-01-09 04:53:11 +0100
commit1d9036bbb07615c1dfeb70bbb7c6ed629199519b (patch)
treed4bf04b890a5bb7ded8634cefa93d21e25885206 /mod_perl.pl
parent67bb62d97c91b0f98fe99059d280dd6a070dddfc (diff)
downloadbugzilla-1d9036bbb07615c1dfeb70bbb7c6ed629199519b.tar.gz
bugzilla-1d9036bbb07615c1dfeb70bbb7c6ed629199519b.tar.xz
set different values for Apache2::SizeLimit->set_max_unshared_size between production and non-production instances
https://bugzilla.mozilla.org/show_bug.cgi?id=827808
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 e3a50e4ea..8febe2f04 100644
--- a/mod_perl.pl
+++ b/mod_perl.pl
@@ -61,7 +61,11 @@ use Apache2::SizeLimit;
# This means that every httpd child will die after processing
# a CGI if it is taking up more than 1600MB of RAM all by itself,
# not counting RAM it is sharing with the other httpd processes.
-Apache2::SizeLimit->set_max_unshared_size(1_600_000);
+if (Bugzilla->params->{'urlbase'} eq 'https://bugzilla.mozilla.org/') {
+ Apache2::SizeLimit->set_max_unshared_size(1_600_000);
+} else {
+ Apache2::SizeLimit->set_max_unshared_size(100_000);
+}
my $cgi_path = Bugzilla::Constants::bz_locations()->{'cgi_path'};