]> granicus.if.org Git - apache/commit
Make mod_include check for BYTE_COUNT_THRESHOLD on a per-bucket basis
authorJustin Erenkrantz <jerenkrantz@apache.org>
Sun, 2 Sep 2001 01:09:02 +0000 (01:09 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Sun, 2 Sep 2001 01:09:02 +0000 (01:09 +0000)
commitfd5ed1c602bfaa28d926e445456ca352cc865745
treecbbc34a21d2c47182ed4a2e9b0e28cef3c4a36a5
parentb5108c6797777be22727907ffb38bbf90000f472
Make mod_include check for BYTE_COUNT_THRESHOLD on a per-bucket basis
rather than on a per-character basis.  A significant amount of time
was spent checking the limit.  A better place to check for the threshold
is when we read the bucket in not as we read each character in the bucket.

If a bucket manages to be 200MB, it is not this code's problem as it
is a mere filter.

I ran this with the mod_include stuff in httpd-test and it looks good
from here.

Submitted by: Brian Pane <bpane@pacbell.net>
Reviewed by: Justin Erenkrantz, Ryan Bloom, Greg Stein, Cliff Woolley,
Paul Reder, etc, etc, etc...

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90869 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
modules/filters/mod_include.c
modules/filters/mod_include.h