httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject cvs commit: httpd-2.0/server core.c
Date Tue, 27 Nov 2001 06:35:29 GMT
brianp      01/11/26 22:35:29

  Modified:    server   core.c
  Log:
  Optimization for core_output_filter: if the iovec is full,
  don't try to concatenate buffers if we already have at least
  8KB of data ready to send.  Instead, just split the brigade
  and send what's currently in the iovec.
  
  Revision  Changes    Path
  1.110     +7 -0      httpd-2.0/server/core.c
  
  Index: core.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/core.c,v
  retrieving revision 1.109
  retrieving revision 1.110
  diff -u -r1.109 -r1.110
  --- core.c	2001/11/26 18:49:36	1.109
  +++ core.c	2001/11/27 06:35:29	1.110
  @@ -3081,6 +3081,13 @@
                               apr_bucket *temp, *next;
                               apr_bucket_brigade *temp_brig;
   
  +                            if (nbytes >= AP_MIN_BYTES_TO_WRITE) {
  +                                /* We have enough data in the iovec
  +                                 * to justify doing a writev
  +                                 */
  +                                more = apr_brigade_split(b, e);
  +                                break;
  +                            }
                               temp_brig = apr_brigade_create(f->c->pool);
                               temp = APR_BRIGADE_FIRST(b);
                               while (temp != e) {
  
  
  

Mime
View raw message