httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@hyperreal.org>
Subject cvs commit: apache/src buff.c
Date Thu, 31 Jul 1997 09:10:31 GMT
dgaudet     97/07/31 02:10:30

  Modified:    src       buff.c
  Log:
  Improve the heuristic for deciding when to use writev() vs. when to
  copy into the buffer.  No sense copying if the copy would fill
  the buffer, might as well writev and start a fresh buffer.
  
  Revision  Changes    Path
  1.40      +1 -1      apache/src/buff.c
  
  Index: buff.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/buff.c,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- buff.c	1997/07/29 06:52:26	1.39
  +++ buff.c	1997/07/31 09:10:29	1.40
  @@ -1005,7 +1005,7 @@
    * Detect case where we're asked to write a large buffer, and combine our
    * current buffer with it in a single writev()
    */
  -    if (fb->outcnt > 0 && nbyte >= fb->bufsiz) {
  +    if (fb->outcnt > 0 && nbyte + fb->outcnt >= fb->bufsiz) {
   	return large_write (fb, buf, nbyte);
       }
   #endif
  
  
  

Mime
View raw message