Re: Chunked output compression

From: Date: Thu, 15 Mar 2001 02:54:54 +0000
Subject: Re: Chunked output compression
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-48962@lists.php.net to get a copy of this message
Read: You can now efficiently have your outgoing PHP/HTTP traffic compressed with good compression ratios without sacrificing memory. Comments extremely welcome - and if people can also test it and let me know whether it works for them, it'd be great.
Taking your example...
ob_start("ob_gzhandler", 64)            10KB
and if I got this right, The output handler should be called 10 times for 640kB file right? If this was the case the following script was supposed to end in
(100000*50(total output) / 128 (buffer size) ) * 3 (seconds for sleep) This is not the case!!! (at least on win32 again) $x=str_repeat('t',99996).'<BR>';
function strlens($string)    {
    //return str_replace("\n",'<br>',$string);
    sleep(3);
    return $string;
     }
ob_start('strlens',128); echo str_repeat($x,50); ob_end_flush(); I tried to find some code to test if I get the stuff chunked or not, I do know other way, is there any? andré -- · André Langhorst t: +49 331 5811560 · · andre@php.net m: +49 173 9558736 · * PHP Quality Assurance http://qa.php.net *

« previous php.dev (#48962) next »