Skip to content

Commit fe886c6

Browse files
author
Dylan Hardison
committed
Bug 1227031 - mod_perl workers are being terminated after 0 seconds
1 parent 14bb07a commit fe886c6

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

mod_perl.pl

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ package Bugzilla::ModPerl;
3737

3838
use Apache2::Log ();
3939
use Apache2::ServerUtil;
40+
use Apache2::SizeLimit;
4041
use ModPerl::RegistryLoader ();
4142
use File::Basename ();
4243

@@ -57,20 +58,10 @@ package Bugzilla::ModPerl;
5758
# Pre-compile the CGI.pm methods that we're going to use.
5859
Bugzilla::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

7566
my $cgi_path = Bugzilla::Constants::bz_locations()->{'cgi_path'};
7667

0 commit comments

Comments
 (0)