Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 77106 invoked from network); 22 Sep 2007 22:27:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Sep 2007 22:27:34 -0000 Received: (qmail 84929 invoked by uid 500); 22 Sep 2007 22:27:20 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 84907 invoked by uid 500); 22 Sep 2007 22:27:20 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 84896 invoked by uid 99); 22 Sep 2007 22:27:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Sep 2007 15:27:20 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jk.lists.questions@gmail.com designates 64.233.182.187 as permitted sender) Received: from [64.233.182.187] (HELO nf-out-0910.google.com) (64.233.182.187) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Sep 2007 22:27:22 +0000 Received: by nf-out-0910.google.com with SMTP id k4so1008368nfd for ; Sat, 22 Sep 2007 15:27:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=V8o9jetJowQs5ctb7OIgT3PClBwdhOGTPCNb7cvuJ4s=; b=KaB5Ix6E3xK8dWTwgIzLOGXLiGwBjVlxHvy3k1cA9kyZj6Zeu5uB27/nxMXrcAEkCCAiOTIZOyymbjD1nNHoe903d4jDiBZEkEP22ntLKresJH1WFUn0GNRsMTuQJrEZxZsavWi1yb+cW0C7CJDPvFLdUQhKODSfvW3v2IM4cYk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=KwWGWHoI6dRc+K3zxNGr4aWEs7Pgbe5Avxnr+PJu7qZuU5r10IuoJ0J77NQ2+VD7bl+zDE8cniANnmMn/geX+oFQytgUWO0Rmj5/ySfxtZNlOSccp5JV7MY9p9K85I33x5kKeA3FzVY/3ENc/qf6v8d5Zx1BNFQVMS5mt+5laoo= Received: by 10.78.177.3 with SMTP id z3mr2836824hue.1190500019071; Sat, 22 Sep 2007 15:26:59 -0700 (PDT) Received: by 10.78.141.5 with HTTP; Sat, 22 Sep 2007 15:26:59 -0700 (PDT) Message-ID: <2913bcb80709221526l2ef22fd7pc017c6160f3ff07a@mail.gmail.com> Date: Sat, 22 Sep 2007 18:26:59 -0400 From: "jk jk" To: modperl@perl.apache.org Subject: Re: Problem with RequestRec and Headers In-Reply-To: <2913bcb80709221505g7e92260fo497506df2aad0ed9@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_54551_28585157.1190500019061" References: <2913bcb80709211323w27416a06p3c9b0a0134aa1906@mail.gmail.com> <66887a3d0709221407y15b7d876rf8df5a0dd369cee@mail.gmail.com> <2913bcb80709221505g7e92260fo497506df2aad0ed9@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_54551_28585157.1190500019061 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Welp, changing over to ModPerl::RegistryPrefork did the trick. Thanks for the advice. I really appreciate it. --JAK On 9/22/07, jk jk 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 wrote: > > > > On 9/21/07, jk jk 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 > > > > ------=_Part_54551_28585157.1190500019061 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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


------=_Part_54551_28585157.1190500019061--