You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by os...@apache.org on 2012/09/08 23:34:52 UTC
git commit: TS-1445 Gzip plugin appends 2 adlers when using gzip
compression
Updated Branches:
refs/heads/master 099843a0a -> 18baa9efe
TS-1445 Gzip plugin appends 2 adlers when using gzip compression
Author: Otto van der Schaaf <os...@apache.org>
Zlib already appends the adler. So the plugin doesn't have to.
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/18baa9ef
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/18baa9ef
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/18baa9ef
Branch: refs/heads/master
Commit: 18baa9efe6ecdc1b387b341b01fe35b43eee6fe0
Parents: 099843a
Author: Otto van der Schaaf <os...@apache.org>
Authored: Sat Sep 8 23:33:32 2012 +0200
Committer: Otto van der Schaaf <os...@apache.org>
Committed: Sat Sep 8 23:33:32 2012 +0200
----------------------------------------------------------------------
plugins/experimental/gzip/gzip.cc | 16 ----------------
1 files changed, 0 insertions(+), 16 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/18baa9ef/plugins/experimental/gzip/gzip.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/gzip/gzip.cc b/plugins/experimental/gzip/gzip.cc
index 40cbda3..895f4e0 100644
--- a/plugins/experimental/gzip/gzip.cc
+++ b/plugins/experimental/gzip/gzip.cc
@@ -287,22 +287,6 @@ gzip_transform_finish(GzipData * data)
data->zstrm.total_out);
}
- if (data->compression_type == COMPRESSION_TYPE_GZIP) {
- info("append gzip adler");
- char *p = (char *) &(data->zstrm.adler);
- int length = 8;
- while (length > 0) {
- downstream_buffer = TSIOBufferBlockWriteStart(downstream_blkp, &downstream_length);
- if (downstream_length > length)
- downstream_length = length;
- memcpy(downstream_buffer, p, downstream_length);
- p += downstream_length;
- length -= downstream_length;
- TSIOBufferProduce(data->downstream_buffer, downstream_length);
- }
- data->downstream_length += 8;
- }
-
gzip_log_ratio(data->zstrm.total_in, data->downstream_length);
}
}