Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
3e0499c3
Commit
3e0499c3
authored
Feb 25, 2007
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 370010: Use Apache::SizeLimit in mod_perl.pl to limit outrageous Apache memory usage
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=justdave, a=mkanat
parent
bc84c5a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
mod_perl.pl
mod_perl.pl
+6
-0
No files found.
mod_perl.pl
View file @
3e0499c3
...
@@ -30,6 +30,7 @@ use strict;
...
@@ -30,6 +30,7 @@ use strict;
use
Apache::
DBI
();
use
Apache::
DBI
();
use
Apache2::
ServerUtil
;
use
Apache2::
ServerUtil
;
use
Apache2::
SizeLimit
;
use
ModPerl::
RegistryLoader
();
use
ModPerl::
RegistryLoader
();
use
CGI
();
use
CGI
();
CGI
->
compile
(
qw(:cgi -no_xhtml -oldstyle_urls :private_tempfiles
CGI
->
compile
(
qw(:cgi -no_xhtml -oldstyle_urls :private_tempfiles
...
@@ -44,6 +45,10 @@ use Bugzilla::Mailer ();
...
@@ -44,6 +45,10 @@ use Bugzilla::Mailer ();
use
Bugzilla::
Template
();
use
Bugzilla::
Template
();
use
Bugzilla::
Util
();
use
Bugzilla::
Util
();
# 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.
$
Apache2::SizeLimit::
MAX_UNSHARED_SIZE
=
70000
;
my
$cgi_path
=
Bugzilla::Constants::
bz_locations
()
->
{
'cgi_path'
};
my
$cgi_path
=
Bugzilla::Constants::
bz_locations
()
->
{
'cgi_path'
};
# Set up the configuration for the web server
# Set up the configuration for the web server
...
@@ -54,6 +59,7 @@ my $conf = <<EOT;
...
@@ -54,6 +59,7 @@ my $conf = <<EOT;
# No need to PerlModule these because they're already defined in mod_perl.pl
# No need to PerlModule these because they're already defined in mod_perl.pl
PerlResponseHandler Bugzilla::ModPerl::ResponseHandler
PerlResponseHandler Bugzilla::ModPerl::ResponseHandler
PerlCleanupHandler Bugzilla::ModPerl::CleanupHandler
PerlCleanupHandler Bugzilla::ModPerl::CleanupHandler
PerlCleanupHandler Apache2::SizeLimit
PerlOptions +ParseHeaders
PerlOptions +ParseHeaders
Options +ExecCGI
Options +ExecCGI
AllowOverride Limit
AllowOverride Limit
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment