On Mon, 12 Feb 2001, Alvar Freude wrote:
> Hi,
>
> I recognized, that the output of (my) mod_perl Scripts is very slow, if
> there are longer texts.
>
> I use the following Code on a Linux machine (PII 350, 320 MB), Apache
> 1.3.12, mod_perl 1.23:
>
>
> $r->header_out('Content-Length', length($$textref));
> $r->header_out('Connection', 'close');
> $r->send_http_header;
>
> $r->print($$textref) unless $r->header_only;
FWIW, you can pass in just $textref and print does the wrong thing. Err, I
mean right thing... well that's another debate :-)
> $r->rflush();
Why do you feel the need to flush?
--
<Matt/>
/|| ** Director and CTO **
//|| ** AxKit.com Ltd ** ** XML Application Serving **
// || ** http://axkit.org ** ** XSLT, XPathScript, XSP **
// \\| // ** Personal Web Site: http://sergeant.org/ **
\\//
//\\
// \\