On Fri, 1 Oct 1999, Dustin Tenney wrote:
> > mod_perl ties the Perl STDOUT filehandle to Apache i/o, but this is
> > different from C stdout, which cannot easily hooked to Apache i/o without
> > a subprocess pipe (as mod_cgi does). I don't know of a decent workaround.
> > do you have access to the library sources?
>
> Yea I wrote the library. I was hoping to get this to work because I
> really need the extra performance that C is giving me. Basically it
> parses an html file and outputs the results to stdout. It uses
> open/read/write to do this. Is there any documentation anywhere on how
> this works? Thanks for the info.
have a look at Apache::Peek on CPAN, there's some #define's at the top
of Peek.xs to redirect stderr to Apache's client output stream, you could
do similar in your code.
-Doug