]> granicus.if.org Git - apache/commitdiff
Fix error in setting bytes_sent. Need more time to think about the other problem
authorBill Stoddard <stoddard@apache.org>
Thu, 21 Sep 2000 22:44:51 +0000 (22:44 +0000)
committerBill Stoddard <stoddard@apache.org>
Thu, 21 Sep 2000 22:44:51 +0000 (22:44 +0000)
noted in this commit. Thanks Jeff!

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86281 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_core.c

index f855e0a6c5aba6e698ad792fcc44b6c3f3224244..d3d8ad287951b02624648c78b095d18ac7a649fa 100644 (file)
@@ -3152,8 +3152,12 @@ static int core_filter(ap_filter_t *f, ap_bucket_brigade *b)
               * the bucket by definition represents the unfiltered contents
               * of a file. Thus it is acceptable to use apr_sendfile().
               */
-             rv = send_the_file(e->data, e->offset, e->length, r, &bytes_sent);
+             rv = send_the_file(e->data, e->offset, e->length, r, &written);
           
+             /* Returning on APR_SUCCESS is not the correct behaviour as there
+              * may be other buckets... Need to think about this awhile before
+              * I change it. wgs
+              */
              if (rv == APR_SUCCESS) {
                  ap_brigade_destroy(b);
                  return APR_SUCCESS;