[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-modperl
Subject: Re: Apache::ASP + Apache::Filter - how fast? (was:sending
From: Joshua Chamas <joshua () chamas ! com>
Date: 2000-10-31 9:11:19
[Download RAW message or body]
Jeff Ng wrote:
>
> Turns out that speed is not the only problem...
>
> I'm having some form submission problems when I chain modules like so:
> PerlHandler inFilter Apache::ASP
>
> If I call $r->content in inFilter, Apache::ASP just hangs. Has anyone seen
> this before?
>
> Could it be because Apache and mod_perl were installed from RPMs? I'll do a
> rebuild this weekend to check.
>
This is common in chaining and module cooperation because
$r->content is a one time event, as the content gets consumed
on the first read. What you can do is use Apache::ASP first
and your module second, no prob, because in Apache::ASP, I cache
the input and retie STDIN, so other environments, like CGI
can be initialized without interfering.
So it should work the other way around at least. I might also
try creating creating a subclass of the apache request object,
and override content to make it reusable. I don't even know if
its possible, but its worth looking into.
This is a common problem to chaining, filtering, and using
different environments at the same time. If you repost
this as a more generic mod_perl problem, you may get
more diverse responses.
-- Joshua
_________________________________________________________________
Joshua Chamas Chamas Enterprises Inc.
NodeWorks >> free web link monitoring Huntington Beach, CA USA
http://www.nodeworks.com 1-714-625-4051
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic