On Tue, 1 Aug 2000, Todd Caine wrote:
> I have Apache 1.3.12 installed on Solaris 2.7 running with
> mod_perl 1.24. I have a simple mod_perl script, it actually
> uses Apache::Registry, that uses a Perl module called RRDs
> that can generate images/graphs from a round robin
> database. If you pass it a '-' as a file name rrd_graph.c
> prints to 'stdout', or file descriptor 1. Everything works
> just fine if I run the script using mod_cgi as the handler.
> But when using mod_perl I get a 200 response from the server
> but no data sent to the socket the request came in on.
>
> I just install Perl 5.6 with sfio (safe and fast I/O).
> There was no difference in the way the script was handled.
RRDs::graph needs to use PerlIO_* for sfio to help. if it's just calling
fwrite(..., stdout), then it bypasses the Perl/sfio layer.
i think there is an sfio stdio.h that you can #include in rrd_graph.c so
stdout will become sfio's stdout, but i haven't dealt with sfio in quite
sometime.