[ic] Trouble with Document->send()
Joachim Leidinger
jojo@blackpoint.de
Thu, 03 May 2001 21:52:10 +0200
Hi list,
i try
[loop arg="1 2 3" send=1]
[perl]
my $out = " ";
$Document->hot(1);
my $i = 0;
for ($i = 1; $i <= 10; $i++)
{
$out .= " $i ";
select(undef,undef,undef,1.000);
}
$out .= "<br> Next process <BR> ";
$Document->send($out); # flush buffer
return '';
[/perl]
[/loop]
and i want to display
1 2 3 4 5 6 7 8 9 10
Next process
three times immediately every 10 seconds. But i get
1 2 3 4 5 6 7 8 9 10
Next process
1 2 3 4 5 6 7 8 9 10
Next process
1 2 3 4 5 6 7 8 9 10
Next process
*after* 30 seconds.
Why is
$Document->send(); # Send write buffer array to output,
done
# automatically upon end of ASP, clears
buffer
# and invalidates $Document->header()
$Document->hot(1); # Cause writes to send immediately
not working?
Have anyone a right codes as an example to send any output to the user
agent immediately?
I have a long running process and any feedback to the user agent (for
example a counter) is very important.
Any tips and helps are very welcome!
Thank you!
ciao
Joachim
--
-------------<BPA FreeBsd>----------------------------------------------
Hans-Joachim Leidinger black point arts Internet Solutions GmbH
email: jojo@blackpoint.de FAX : +49 0209-398265
http://www.bpaserver.net