]> granicus.if.org Git - apache/commitdiff
Just a little extra commentary...
authorCliff Woolley <jwoolley@apache.org>
Fri, 24 Aug 2001 20:38:27 +0000 (20:38 +0000)
committerCliff Woolley <jwoolley@apache.org>
Fri, 24 Aug 2001 20:38:27 +0000 (20:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90649 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_protocol.c

index 0229296906efb7ea42123525c93516780d6eeaaf..910942e109113812b4e2e61ac3be986e78a6aacd 100644 (file)
@@ -2468,9 +2468,11 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_byterange_filter(
             apr_size_t len;
 
             if (apr_bucket_copy(ec, &foo) != APR_SUCCESS) {
-                /* we assume here that if copy failed we can morph
-                 * the bucket into a copyable one by reading it... normally
-                 * copy won't return anything but APR_SUCCESS or APR_ENOTIMPL
+                /* this shouldn't ever happen due to the call to
+                 * apr_brigade_length() above which normalizes
+                 * indeterminate-length buckets.  just to be sure,
+                 * though, this takes care of uncopyable buckets that
+                 * do somehow manage to slip through.
                  */
                 /* XXX: check for failure? */
                 apr_bucket_read(ec, &str, &len, APR_BLOCK_READ);