> On 07 Feb 2017, at 03:21, Jie Gao <j....@sydney.edu.au> 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