httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grega...@apache.org
Subject cvs commit: httpd-2.0/server protocol.c
Date Wed, 31 Oct 2001 21:14:24 GMT
gregames    01/10/31 13:14:24

  Modified:    server   protocol.c
  Log:
  change ap_getline to return the size of the buffer when there's no apparent end
  to an input line.  This is more like the 1.3 behavior which should help the
  callers recognize this condition.
  
  Revision  Changes    Path
  1.50      +5 -2      httpd-2.0/server/protocol.c
  
  Index: protocol.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/protocol.c,v
  retrieving revision 1.49
  retrieving revision 1.50
  diff -u -r1.49 -r1.50
  --- protocol.c	2001/10/23 20:43:57	1.49
  +++ protocol.c	2001/10/31 21:14:23	1.50
  @@ -187,7 +187,10 @@
    * caused by MIME folding (or broken clients) if fold != 0, and place it
    * in the buffer s, of size n bytes, without the ending newline.
    *
  - * Returns -1 on error, or the length of s.  
  + * Returns: 
  + *     the length of s (normal case),
  + *     n               (buffer full),
  + *    -1               (other errors)
    *
    * Notes: Because the buffer uses 1 char for NUL, the most we can return is 
    *        (n - 1) actual characters.  
  @@ -269,7 +272,7 @@
                * redirects get a new req_cfg->bb
                */
   
  -            return -1;
  +            return n;
           }
           
           pos = last_char;        /* Point at the last character           */
  
  
  

Mime
View raw message