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

Bug #6564 Wrong content-length header
Submitted: 2006-01-24 09:59 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  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 15 + 37 = ?

 
 [2006-01-24 09: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 15: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 17:52 UTC] jeichorn at php dot net
Fixed in SVN, we don't longer send a Content-Length header when we detect output_compression