> > This might help, in you httpd.conf file set this
>>
>> PerlSendHeader Off
>>
>> Tor.
>>
>That messes up all the standard responses. I have a work around now
>-- naturally it came to me moments after I posted
>
>don't know if this is "correct" so to speak, but it works fine.
>
> open(F,$file) || return 404;
> $r->send_fd(F);
> close F;
>
> pipe(R,W);
> print W "some dynamically generated text\n";
> close W;
> $r->send_fd(R);
> close R;
Won't this block after about 2048 bytes (on linux)?
I thought pipe was only appropriate when forking was in use...
pipe(R,W);
if(fork) {
print W "2048 or more bytes of text\n";
close W;
} else {
$r->send_fd(R);
close R;
}
The reason for this was so that the write wouldn't block. In your
example, there is nothing reading the data from the pipe, so once the
buffer is full, writes will block until the data is read. I could be
wrong....
Rob
--
Rome didn't become great by having meetings; they did it by killing
all those who opposed them.