From 9d615b23da97f867a3eee977b9d190aeca2468c0 Mon Sep 17 00:00:00 2001 From: Ryan Bloom Date: Thu, 9 Aug 2001 04:25:46 +0000 Subject: [PATCH] Add a comment so that the next poor fool who re-writes this section of code will know about this case. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90045 13f79535-47bb-0310-9956-ffa450edef68 --- modules/http/http_protocol.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index 59782cbed4..8f183f41df 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -646,6 +646,12 @@ apr_status_t ap_http_filter(ap_filter_t *f, apr_bucket_brigade *b, ap_input_mode } } + /* If readbytes is -1, we want to just read everything until the end + * of the brigade, which in this case means the end of the socket. To + * do this, we loop through the entire brigade, until the socket is + * exhausted, at which point, it will automagically remove itself from + * the brigade. + */ if (*readbytes == -1) { apr_bucket *e; apr_off_t total; -- 2.50.1