Commit ff21bfca authored by Max Kanat-Alexander's avatar Max Kanat-Alexander Committed by Frédéric Buclin

Bug 633061: Require Apache2::SizeLimit 0.96 for proper operation on Linux

r=dkl a=mkanat
parent 0284798a
...@@ -355,9 +355,8 @@ sub OPTIONAL_MODULES { ...@@ -355,9 +355,8 @@ sub OPTIONAL_MODULES {
{ {
package => 'Apache-SizeLimit', package => 'Apache-SizeLimit',
module => 'Apache2::SizeLimit', module => 'Apache2::SizeLimit',
# 0.93 fixes problems on Linux and Windows, and changes the # 0.96 properly determines process size on Linux.
# syntax used by SizeLimit. version => '0.96',
version => '0.93',
feature => ['mod_perl'], feature => ['mod_perl'],
}, },
); );
......
...@@ -51,8 +51,9 @@ Bugzilla::CGI->compile(qw(:cgi :push)); ...@@ -51,8 +51,9 @@ Bugzilla::CGI->compile(qw(:cgi :push));
use Apache2::SizeLimit; use Apache2::SizeLimit;
# This means that every httpd child will die after processing # This means that every httpd child will die after processing
# a CGI if it is taking up more than 70MB of RAM all by itself. # a CGI if it is taking up more than 45MB of RAM all by itself,
Apache2::SizeLimit->set_max_unshared_size(70_000); # not counting RAM it is sharing with the other httpd processes.
Apache2::SizeLimit->set_max_unshared_size(45_000);
my $cgi_path = Bugzilla::Constants::bz_locations()->{'cgi_path'}; my $cgi_path = Bugzilla::Constants::bz_locations()->{'cgi_path'};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment