[ic] How to flush puffer with IC?
Joachim Leidinger
jojo@blackpoint.de
Fri, 04 May 2001 17:11:58 +0200
Hi list,
a perl script like
#!/usr/bin/perl
$|=1;
print "\r\nContent-Type: text/html\r\n";
$out = "a \n";
print $out;
sleep (1);
$out = "b \n";
print $out;
sleep (1);
$out = "c \n";
print $out;
etc.
display a b c d immediatly with 1 second pause between each chars.
I try the same with
[mvasp]
<%
my $out = " ";
$Document->hot(1);
$Document->send("\r\nContent-Type: text/html\r\n");
$out = "a \n";
$Document->send($out);
select(undef,undef,undef,1.000);
$out = "b \n";
$Document->send($out);
select(undef,undef,undef,1.000);
$out = "c \n";
%>
[/mvasp]
and get the whole page at once. It seems to me, IC did not flush the
puffer.
I've did try
$Document->header("Content-type: text/plain", { replace => 1 } );
or
$Document->header("\r\nContent-type: text/plain\r\n", { replace => 1 }
with no success! What is the cause?
Tanks!
Joachim
--
-------------<BPA FreeBsd>----------------------------------------------
Hans-Joachim Leidinger black point arts Internet Solutions GmbH
email: jojo@blackpoint.de FAX : +49 0209-398265
http://www.bpaserver.net