* Ben RUBSON <ben.rub...@gmail.com> wrote:

> 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)

It works for me with Apache/2.4.23 (Unix) + mod_perl/2.0.10 + Perl/v5.20.2, all 
manually compiled locally on a RHEL6 box.

In testing with the following registry script:

#!/usr/local/bin/perl -w
use strict;

my $r = Apache2::RequestUtil->request;
$r->content_type("text/html");

$r->rflush();

sleep 60;

print "Delayed output: ", time(), "\n"; 
# END

, the headers were sent right away and were followed by the response body 60sec 
later.


Regards,


Jie 

Reply via email to