]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
The problem here is that we are getting some zero-length buckets at the head
authorJustin Erenkrantz <jerenkrantz@apache.org>
Thu, 11 Oct 2001 01:38:28 +0000 (01:38 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Thu, 11 Oct 2001 01:38:28 +0000 (01:38 +0000)
commit5902e1f3e3d5937ea226011d4e2ad2321fe5a5cf
treec198e03dd428d6f72a2fec84757bfa5ef368baf0
parente109fb066bae400c50a6b065a1a842abe6cccd69
The problem here is that we are getting some zero-length buckets at the head
of our brigade - which are in isolation okay.  In this situation, they
must be removed by the call to APR_BRIGADE_NORMALIZE.

The way we partition the buckets means that we will never remove the
zero-length bucket from the head - causing an infinite loop.  We read only
a single bucket now - previously partition with the blocking reads would
read multiple buckets - but it forced having a defined length which we
agreed was bogus.

Therefore, if we have a zero-length bucket at the head, we would then try
to partition and split at the zero-point of the brigade.  That combination
doesn't actually remove the zero-length bucket - it is still there - causing
an infinite loop because we'll never go past the zero-length bucket.

This call was originally present in core_input_filter.  I think it might
be better to fix partition/split/etc to eliminate a zero-length bucket
and skip it.  But, I'm not 100% sure that needs to happen.

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