]> granicus.if.org Git - apache/commitdiff
Add a comment so that the next poor fool who re-writes this section
authorRyan Bloom <rbb@apache.org>
Thu, 9 Aug 2001 04:25:46 +0000 (04:25 +0000)
committerRyan Bloom <rbb@apache.org>
Thu, 9 Aug 2001 04:25:46 +0000 (04:25 +0000)
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

index 59782cbed48490eda74d034cbcacd66e33f61500..8f183f41df1d8cb7416421388e107ba71ae96e58 100644 (file)
@@ -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;