On Sun, 2001-12-23 at 20:01:04, Joshua Chamas wrote:

> Szymon Juraszczyk wrote:
> > 
> >   Hi,
> > 
> >   I've got serious problems with $Response->Flush() function. I searched
> > discussion forums and found quite lots of references regarding this issue.
> > However, using brand new Apache::ASP 2.29 and struggling all day long I
> > still can't make this bloody function work.
> > 
> 
> How does the http://www.apache-asp.org/eg/register_cleanup.asp
> script work for you?  Under IE & Netscape, I see the ... render
> one line at a time.  This is as a result of $Response->Flush().
> This script is the same as ./site/eg/register_cleanup.asp in 
> the distribution.

  It works fine for me too.
 
> $Response->Flush is explicitly disabled in XMLSubs, since the 
> content must be passed into the XMLSubs for processing, but 
> otherwise it should work fine.

  I don't use XMLSubs.
 
> If you really get stuck, send a bit of script where you can't
> get $Response->Flush to work & I'll check it out.

  It's very simple:

<html>
<body>


<%
  for (my $i = 1; $i <= 10; $i++) {
    $Response->Write("Test $i<br>\n");
  }

  $Response->Flush();

  sleep(10);

 $Response->Write("End<br>");
%>

</body>
</html>

  I suspect that mod-perl is buffering something. Your code does
$Response->{'r'}->print() in Flush() - I checked that. Maybe my
modperl-enabled Apache is kind of lame? I use apache-perl-1.3.22-2-1.26-3
Debian package.

Regards,
-- 
Szymon Juraszczyk, [EMAIL PROTECTED]
Surfland Computer Systems S.A.
tel. +48 71 78-02-952, http://www.ssk.com.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to