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.com1-714-625-4051