perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jk jk" <jk.lists.questi...@gmail.com>
Subject Re: Problem with RequestRec and Headers
Date Sat, 22 Sep 2007 22:26:59 GMT
Welp, changing over to ModPerl::RegistryPrefork did the trick.  Thanks for
the advice.  I really appreciate it. --JAK


On 9/22/07, jk jk <jk.lists.questions@gmail.com> wrote:
>
> My question would then be, in which situation would I be using an old one
> on a later request?  I suspect this may be the case, since the problem goes
> away if I turn keep-alive on. Thanks. --JAK
>
> On 9/22/07, Perrin Harkins <perrin@elem.com> wrote:
> >
> > On 9/21/07, jk jk <jk.lists.questions@gmail.com> wrote:
> > > sub printme{
> > >
> > >     my ( $self, $args ) = @_;
> > >
> > >     my $r = Apache2::RequestUtil->request;
> > >
> > >     $self->{r}->content_type('text/html');
> > >
> > >     print "A Page of Rendered HTML\n";
> > > }
> >
> > You ask for $r from Apache2::RequestUtil here, but then you don't use
> > it.  That looks a bit odd, although not necessarily dangerous.  And
> > are you using the prefork MPM?
> >
> > In general, you don't want to put something like a Apache2::RequestRec
> > in a global that will not be gone at the end of the request.  It could
> > cause a lot of trouble if you tried to use an old one on a later
> > request.
> >
> > - Perrin
> >
>
>

Mime
View raw message