From: Ruediger Pluem Date: Thu, 16 Nov 2006 20:41:06 +0000 (+0000) Subject: * Also log the presence of garbage data at the end of the stream if all X-Git-Tag: 2.3.0~2020 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0db4e22085537dcb923fb1178247823cb11a6b95;p=apache * Also log the presence of garbage data at the end of the stream if all 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 --- diff --git a/modules/filters/mod_deflate.c b/modules/filters/mod_deflate.c index 28d805ec7a..84f77e99ae 100644 --- a/modules/filters/mod_deflate.c +++ b/modules/filters/mod_deflate.c @@ -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; }