From 97b23cb0740b2bbc5eed732c328d6f955f1f0d68 Mon Sep 17 00:00:00 2001 From: Ryan Bloom Date: Sun, 22 Apr 2001 15:46:19 +0000 Subject: [PATCH] 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 --- modules/http/http_protocol.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.50.1