On Sun, 2001-12-23 at 20:36:20, Joshua Chamas wrote:
[ ... ]
> > 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.
> >
>
> This should work. What if you put the Flush() in the for loop.
> I wonder whether your browser needs to see more than one flush
> to start rendering.
>
> My latest apache's that I have used for my own servers are 1.3.14 & 1.3.20,
> & mod_perl 1.25 on the 1.3.20 server, I don't know for the other.
> I have heard users complaining with 1.26 before, so might try downgrading
> my mod_perl & recompiling. You can also try this:
>
> # global.asa
> sub Script_OnFlush { Apache->request->rflush() }
It doesn't help.
> The routine might be Apache->request->flush(), I can't remember,
> and it doesn't seem to be documented. Apache::ASP when flushing
> uses $| = 1, combined with Apache->request->print to do its flushing
> which might be broken on your version (?).
>
> Whatever ends up being your fix for this, please post your solution
> to the list.
I even tried to patch mod-perl with following patch:
--- apache-perl-1.3.22-2-1.26/libapache-mod-perl-1.26/src/modules/perl/Apache.xs
+++ apache-perl-1.3.22-2-1.26/libapache-mod-perl-1.26/src/modules/perl/Apache.xs
+ Wed Dec 26 17:17:10 2001
@@ -1139,12 +1139,10 @@
#else
(void)(*CvXSUB(cv))(aTHXo_ cv); /* &Apache::write_client; */
#endif
-
- if(IoFLAGS(GvIOp(defoutgv)) & IOf_FLUSH) /* if $| != 0; */
#if MODULE_MAGIC_NUMBER >= 19970103
- rflush(r);
+ rflush(r);
#else
- bflush(r->connection->client);
+ bflush(r->connection->client);
#endif
kill_timeout(r);
}
but it did not help, either. Unfortunately package dependencies in my
Debian box do not allow me to downgrade to historic Apache's versions. I
hope there'll be a way to make this work in 1.3.22/1.26...
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]