rfminelli / lusca-cache

Automatically exported from code.google.com/p/lusca-cache
GNU General Public License v2.0
0 stars 0 forks source link

Squid GZIP #148

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This patch adds the feature of http compression on the fly.
Original Link : https://github.com/yaoweibin/squid_gzip

Look at Attach file for patch to be used for Lusca.

Original issue reported on code.google.com by hen26...@gmail.com on 24 Oct 2011 at 1:14

Attachments:

GoogleCodeExporter commented 8 years ago
Hi,

I'll create a branch and throw this patch into it. The patch needs to be tidied 
up a bit to handle some edge cases.

The first one is in httpGzipDone(), where it appends the footer to a deflate 
buffer but it doesn't check first to see if there's enough room left. There may 
be other corner cases that the author hasn't thought about.

Original comment by adrian.c...@gmail.com on 25 Oct 2011 at 7:45

GoogleCodeExporter commented 8 years ago
Another issue is that he uses an int in StoreEntry to store the compression 
type. This adds 4 extra bytes per StoreEntry on i386, and 8 bytes on amd64. 
This is a bit silly.

Original comment by adrian.c...@gmail.com on 25 Oct 2011 at 7:46