serf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1757679 - /serf/trunk/buckets/deflate_buckets.c
Date Thu, 25 Aug 2016 13:09:31 GMT
Author: rhuijben
Date: Thu Aug 25 13:09:30 2016
New Revision: 1757679

URL: http://svn.apache.org/viewvc?rev=1757679&view=rev
Log:
Fix default compression level in deflate compress buckets.

* buckets/deflate_buckets.c
  (serf_deflate_wait_for_data): Pass Z_DEFAULT_COMPRESSION instead
   of Z_DEFAULT_STRATEGY as the compression level to deflateInit2(),
   to actually enable compression.

Patch by: Evgeny Kotkov <evgeny.kotkov{_AT_}visualsvn.com>

Modified:
    serf/trunk/buckets/deflate_buckets.c

Modified: serf/trunk/buckets/deflate_buckets.c
URL: http://svn.apache.org/viewvc/serf/trunk/buckets/deflate_buckets.c?rev=1757679&r1=1757678&r2=1757679&view=diff
==============================================================================
--- serf/trunk/buckets/deflate_buckets.c (original)
+++ serf/trunk/buckets/deflate_buckets.c Thu Aug 25 13:09:30 2016
@@ -503,7 +503,7 @@ static apr_status_t serf_deflate_wait_fo
               break;
             }
         case STATE_COMPRESS_INIT:
-            zRC = deflateInit2(&ctx->zstream, Z_DEFAULT_STRATEGY, Z_DEFLATED,
+            zRC = deflateInit2(&ctx->zstream, Z_DEFAULT_COMPRESSION, Z_DEFLATED,
                                ctx->windowSize, ctx->memLevel, Z_DEFAULT_STRATEGY);
             if (zRC != Z_OK) {
                 serf__log(LOGLVL_ERROR, LOGCOMP_COMPR, __FILE__, ctx->config,



Mime
View raw message