From: Ryan Bloom Date: Sun, 22 Apr 2001 15:46:19 +0000 (+0000) Subject: Add a comment about how http_filter works. X-Git-Tag: 2.0.18~185 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=97b23cb0740b2bbc5eed732c328d6f955f1f0d68;p=apache Add a comment about how http_filter works. Submitted by: Graham Leggett git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88911 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index 9d765249d9..6e1298a9da 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -575,6 +575,11 @@ apr_status_t ap_http_filter(ap_filter_t *f, apr_bucket_brigade *b, ap_input_mode } if (len) { + /* note: this can sometimes insert empty buckets into the + * brigade, or the data might come in a few characters at + * a time - don't assume that one call to apr_bucket_read() + * will return the full string. + */ if (f->c->remain < len) { apr_bucket_split(e, f->c->remain); f->c->remain = 0;