[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with RequestRec and Headers


Welp, changing over to ModPerl::RegistryPrefork did the trick.  Thanks for the advice.  I really appreciate it. --JAK


On 9/22/07, jk jk < suppressed> 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 <suppressed> wrote:
On 9/21/07, jk jk <suppressed> 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



Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.