]> granicus.if.org Git - apache/commitdiff
* Also log the presence of garbage data at the end of the stream if all
authorRuediger Pluem <rpluem@apache.org>
Thu, 16 Nov 2006 20:41:06 +0000 (20:41 +0000)
committerRuediger Pluem <rpluem@apache.org>
Thu, 16 Nov 2006 20:41:06 +0000 (20:41 +0000)
  validation data is available in the first round.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@475920 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_deflate.c

index 28d805ec7a8d1bc1ee9b5732319e845ee9c33303..84f77e99aef07e951c477636763f6755360035ce 100644 (file)
@@ -1196,6 +1196,10 @@ static apr_status_t inflate_out_filter(ap_filter_t *f,
                                                      VALIDATION_SIZE);
                 if (ctx->stream.avail_in > VALIDATION_SIZE) {
                     ctx->validation_buffer_length = VALIDATION_SIZE;
+                    ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r,
+                                  "Zlib: %d bytes of garbage at the end of "
+                                  "compressed stream.",
+                                  ctx->stream.avail_in - VALIDATION_SIZE);
                 } else if (ctx->stream.avail_in > 0) {
                            ctx->validation_buffer_length = ctx->stream.avail_in;
                 }