File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ package Bugzilla::ModPerl;
3737
3838use Apache2::Log ();
3939use Apache2::ServerUtil;
40+ use Apache2::SizeLimit;
4041use ModPerl::RegistryLoader ();
4142use File::Basename ();
4243
@@ -57,20 +58,10 @@ package Bugzilla::ModPerl;
5758# Pre-compile the CGI.pm methods that we're going to use.
5859Bugzilla::CGI-> compile(qw( :cgi :push) );
5960
60- use Apache2::SizeLimit;
61-
6261# This means that every httpd child will die after processing a request if it
6362# is taking up more than $apache_size_limit of RAM all by itself, not counting RAM it is
6463# sharing with the other httpd processes.
65- my $apache_size_limit = 250_000;
66- if (Bugzilla-> localconfig-> {apache_size_limit }) {
67- $apache_size_limit = Bugzilla-> localconfig-> {apache_size_limit };
68- }
69- elsif (Bugzilla-> params-> {' urlbase' } eq ' https://bugzilla.mozilla.org/' ) {
70- $apache_size_limit = 700_000;
71- }
72-
73- Apache2::SizeLimit-> set_max_unshared_size($apache_size_limit );
64+ Apache2::SizeLimit-> set_max_unshared_size(Bugzilla-> localconfig-> {apache_size_limit });
7465
7566my $cgi_path = Bugzilla::Constants::bz_locations()-> {' cgi_path' };
7667
You can’t perform that action at this time.
0 commit comments