Flush buffer combined with mod_deflate doesn't seem to work

L

Leif Wessman

I'm trying to print a html header, then flush the buffer and then
print the rest of the page. Like this:

print "header\n";
$| = 1;
print "\n";
sleep 10;
$| = 0;
print "content\n";

header contains more than 8096 bytes (default buffer size according to
http://httpd.apache.org/docs/2.0/mod/mod_deflate.html).

This works fine (header shows immediately, content after 10 seconds)
when _not_ using mod_deflate. When using mod_deflate both header and
content shows after 10 seconds...

What could be the problem?
 
X

xhoster

Leif Wessman said:
I'm trying to print a html header, then flush the buffer and then
print the rest of the page. Like this:

print "header\n";
$| = 1;
print "\n";
sleep 10;
$| = 0;
print "content\n";

header contains more than 8096 bytes (default buffer size according to
http://httpd.apache.org/docs/2.0/mod/mod_deflate.html).

This works fine (header shows immediately, content after 10 seconds)
when _not_ using mod_deflate. When using mod_deflate both header and
content shows after 10 seconds...

What could be the problem?

The problem is related to Apache or your web browser, not the Perl itself.

Xho
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top