Re: Custom deflation gzip filter [mp2] [SOLVED]

2005-09-12 Thread Alexander Charbonnet
In case anyone cares, I finally realized what the difference is between these two code snippets: context. In array context, flush() returns an array containing the output as well as the return code. In scalar context, flush() returns just the output. The print function, of course, asks for an

Re: Custom deflation gzip filter [mp2]

2005-08-27 Thread Alexander Charbonnet
Sounds plausible, except that the crc and length are computed based on the uncomressed copy of the original text (in $state_ref->{'body'}), which is unchanged by the flush. On Saturday 27 August 2005 01:18 pm, Malcolm J Harwood wrote: > On Friday 26 August 2005 06:25 pm, Alexander Charbonnet wr

Re: Custom deflation gzip filter [mp2]

2005-08-27 Thread Malcolm J Harwood
On Friday 26 August 2005 06:25 pm, Alexander Charbonnet wrote: > It apparently works after I played with the code for the final flush. I'm > not sure why, though. There was only one change (below). Anybody see a > significant difference? > In any case, I'll take it, since it works now. :-) >

Re: Custom deflation gzip filter [mp2]

2005-08-26 Thread Alexander Charbonnet
It apparently works after I played with the code for the final flush. I'm not sure why, though. There was only one change (below). Anybody see a significant difference? In any case, I'll take it, since it works now. :-) --Original (broken) code $f->print(join '',

Re: Custom deflation gzip filter [mp2]

2005-08-26 Thread Alexander Charbonnet
Okay, I've tried the new filter on a Gentoo system: Apache 2.0.54-r13, mod_perl 2.0.1-r2. It helped me to port the filter to the correct API (which only required a couple of changes, thankfully), but it didn't fix the weird IE problem. I know I'm not alone in wanting this feature (being able t

Re: Custom deflation gzip filter [mp2]

2005-08-26 Thread Alexander Charbonnet
Wow, I hadn't realized there was such a big change that didn't make it to Sarge. What a mess. Fortunately, there appears to be a backport; that'll make things easy. Thanks for letting me know; that would have been a nasty surprise. Unforunately, it doesn't seem like that would cause my IE pr

Re: Custom deflation gzip filter [mp2]

2005-08-26 Thread Philip M. Gollucci
Alexander Charbonnet wrote: I'm running the Debian Sarge versions of everything: Apache 2.0.54-4, mod_perl 1.999.21-1. I'd update to something after RC5 so that you don't use an unsupported API of mod_perl2. see: http://perl.apache.org/docs/2.0/rename.html -- END

Custom deflation gzip filter [mp2]

2005-08-26 Thread Alexander Charbonnet
Hi, I'm in a situation where I need the ability to flush the output of my CGI script to the client, so that it can display a partial page, and I also need to use gzip compression (only if the client supports it, of course). This could be done in Apache 1 by using Dynagzip. I couldn't make the