Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.5.7

Bug #6564 Wrong content-length header
Submitted: 2006-01-24 04:59 UTC Modified: 2006-01-24 12:52 UTC
From: wf at eteleon dot de Assigned: jeichorn
Status: Closed Package: HTML_AJAX
PHP Version: 5.1.2 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2006-01-24 04:59 UTC] wf at eteleon dot de
Description: ------------ When zlib.output_compression is enable on the server, the content-length value is wrong, that is sent in line 361 of the script AJAX/Server.php. The browser then waits about 10 seconds before it continues it's work. Test script: --------------- <? ini_set( 'zlib.output_compression', '1'); require_once 'HTML/AJAX/Server.php'; $server = new HTML_AJAX_Server(); $server->handleRequest(); ?> Call this script using ?client=all Actual result: -------------- The browser loads 22,8 of 87,9 kB and waits...

Comments

 [2006-01-24 10:53 UTC] jeichorn at php dot net
HTML_AJAX doesn't have access to the new length, so im not sure what we can do to solve this. (The compression happens in an output buffer that isn't acessible from normal PHP code) I'll look into just disabling the Content-Length header when output_compression is enabled.
 [2006-01-24 12:52 UTC] jeichorn at php dot net
Fixed in SVN, we don't longer send a Content-Length header when we detect output_compression