Skip to content

Commit

Permalink
Probably less-than-useful WIP
Browse files Browse the repository at this point in the history
The code in this commit had been sitting uncommitted since December
2021.

It is the code referenced in comments on the task ticket as having
broken testing.
  • Loading branch information
bconry-bps committed Oct 29, 2024
1 parent d0b1465 commit 247f276
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions lib/RT/Interface/Web/Handler.pm
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,31 @@ MODPERL
return $res;
}

=head1 CheckMPMConfiguration
Make sure we're running with the 'prefork' MPM.
=cut

sub CheckMPMConfiguration {
my $self = shift;
eval `require Data::Dumper`;

if ($CGI::MOD_PERL and $CGI::MOD_PERL >= 2 ) {
if( eval 'use Apache2::Const -compile => qw(:mpmq)' and eval 'require Apache2::MPM' ) {
eval 'Data::Dumper::Dumper( \*Apache2::Const::MPMQ_IS_THREADED )';
#my $mpm_type = Apache2::MPM->query(Apache2::Const::MPMQ_IS_THREADED);
#die Data::Dumper::Dumper( $mpm_type );
}
else {
die "have mod_perl >= 2, but error pulling in Apache: '$@', '$!'";
}
}
else {
die "don't seem to be apache";
}
}

# PSGI App

use RT::Interface::Web::Handler;
Expand Down

0 comments on commit 247f276

Please sign in to comment.