You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by yl...@apache.org on 2014/03/01 21:34:55 UTC

svn commit: r1573224 - /httpd/httpd/trunk/modules/filters/mod_deflate.c

Author: ylavic
Date: Sat Mar  1 20:34:55 2014
New Revision: 1573224

URL: http://svn.apache.org/r1573224
Log:
mod_deflate: when consuming zlibs flags, APR_INCOMPLETE implies no more bytes available.

Modified:
    httpd/httpd/trunk/modules/filters/mod_deflate.c

Modified: httpd/httpd/trunk/modules/filters/mod_deflate.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/filters/mod_deflate.c?rev=1573224&r1=1573223&r2=1573224&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/filters/mod_deflate.c (original)
+++ httpd/httpd/trunk/modules/filters/mod_deflate.c Sat Mar  1 20:34:55 2014
@@ -1210,7 +1210,7 @@ static apr_status_t deflate_in_filter(ap
                 if (rv == APR_SUCCESS) {
                     ctx->zlib_flags = 0;
                 }
-                if (rv == APR_INCOMPLETE || !len) {
+                if (!len) {
                     continue;
                 }
             }
@@ -1614,7 +1614,7 @@ static apr_status_t inflate_out_filter(a
             if (rv == APR_SUCCESS) {
                 ctx->zlib_flags = 0;
             }
-            if (rv == APR_INCOMPLETE || !len) {
+            if (!len) {
                 apr_bucket_delete(e);
                 continue;
             }