httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject cvs commit: httpd-2.0/modules/http http_core.c
Date Tue, 23 Jan 2001 23:23:45 GMT
rbb         01/01/23 15:23:44

  Modified:    modules/http http_core.c
  Log:
  Allow the core_output_filter to deal with multiple file buckets in the
  same brigade.
  
  Revision  Changes    Path
  1.243     +10 -0     httpd-2.0/modules/http/http_core.c
  
  Index: http_core.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/http/http_core.c,v
  retrieving revision 1.242
  retrieving revision 1.243
  diff -u -d -b -w -u -r1.242 -r1.243
  --- http_core.c	2001/01/23 23:05:12	1.242
  +++ http_core.c	2001/01/23 23:23:37	1.243
  @@ -3356,6 +3356,16 @@
               else if (APR_BUCKET_IS_FILE(e) && (e->length >= AP_MIN_SENDFILE_BYTES))
{
                   apr_bucket_shared *s = e->data;
                   apr_bucket_file *a = s->data;
  +
  +                /* We can't handle more than one file bucket at a time
  +                 * so we split here and send the file we have already found.
  +                 */
  +                if (fd) {
  +                    more = apr_brigade_split(b, APR_BUCKET_NEXT(e));
  +                    ap_save_brigade(f, &ctx->b, &more);
  +                    break;
  +                }
  +
                   fd = a->fd;
                   flen = e->length;
                   foffset = s->start;
  
  
  

Mime
View raw message