You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by ak...@locus.apache.org on 2000/12/01 19:30:21 UTC

cvs commit: apr/network_io/win32 sendrecv.c

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;