Re: Flush headers ?

Ben RUBSON <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
> On 07 Feb 2017, at 03:21, Jie Gao <[email protected]> wrote:
> 
> Try moving the header addition line to after the flush statement.
> 
> Regards,
> 
> Jie 

Unfortunately it does not help :-/
Even keeping only one header line (the content-type one).

I investigated further and found that the following example :
my $r = shift;
$r->content_type('text/html');
$r->rflush();
sleep(10);
$r->print("HelloWorld");
$r->rflush();
sleep(10);

Works as expected with Debian 7, Apache 2.2.22-13+deb7u6, mod_perl 2.0.7-3.
Works as expected with Debian 8, Apache 2.4.10-10+deb8u5, mod_perl 2.0.9~1624218-2+deb8u1.

But does not work with FreeBSD 11, Apache 2.4.25_1, mod_perl 2.0.10,3.
(headers only flushed after the first 10 seconds)

All packages installed using compiled repositories (apt / pkg).

Ben
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.