Re: Apache::ASP + Apache::Filter - how fast? (was:sending Apache::ASPoutput to a variable?)

2000-10-31 Thread Joshua Chamas

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



Re: Apache::ASP + Apache::Filter - how fast? (was:sending Apache::ASPoutput to a variable?)

2000-10-26 Thread Joshua Chamas

Jeff Ng wrote:
 
 Thanks Ged.  I started down that path, but found that Apache::Filter
 combined with Apache::ASP basically does the job I need.  There are a few
 limitations, but it should be good enough.  The only remaining concern is
 speed.
 
 Does anyone have experience with this setup?
 

No real world experience, but in the lab it seems speedy enough,
but then it all depends on what you need to get out of it.
Your own performance analysis will be the best here.
I would recommend cranking on it with ab for a rough 
estimate.

One fundamental limitation with this setup is how I/O is
buffered, that you can't ever send a trickle down to 
the web client, its all or none.

--Joshua