apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@locus.apache.org
Subject cvs commit: apr/network_io/win32 sendrecv.c
Date Fri, 01 Dec 2000 18:30:21 GMT
ake         00/12/01 10:30:21

  Modified:    network_io/win32 sendrecv.c
  Log:
  apr_sendfile should include header bytes in total bytes sent
  
  Revision  Changes    Path
  1.30      +5 -2      apr/network_io/win32/sendrecv.c
  
  Index: sendrecv.c
  ===================================================================
  RCS file: /home/cvs/apr/network_io/win32/sendrecv.c,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- sendrecv.c	2000/11/07 20:21:48	1.29
  +++ sendrecv.c	2000/12/01 18:30:20	1.30
  @@ -293,8 +293,11 @@
               break;
   
           /* Assume the headers have been sent */
  -        ptfb->HeadLength = 0;
  -        ptfb->Head = NULL;
  +        if (ptfb != NULL) {
  +            *len += ptfb->HeadLength;
  +            ptfb->HeadLength = 0;
  +            ptfb->Head = NULL;
  +        }
           bytes_to_send -= nbytes;
           *len += nbytes;
           overlapped.Offset += nbytes;
  
  
  

Mime
View raw message