Return-Path: Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 81366 invoked by uid 500); 31 Oct 2001 20:28:41 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 81351 invoked by uid 500); 31 Oct 2001 20:28:41 -0000 Delivered-To: apmail-httpd-2.0-cvs@apache.org Date: 31 Oct 2001 20:18:56 -0000 Message-ID: <20011031201856.19475.qmail@icarus.apache.org> From: gregames@apache.org To: httpd-2.0-cvs@apache.org Subject: cvs commit: httpd-2.0/server core.c X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N gregames 01/10/31 12:18:56 Modified: server core.c Log: return the actual number of bytes read when we're in "read a line" mode and it looks like the line may never end. This lets ap_getline determine whether there's excessive bytes or not, depending on the size of its caller's buffers. If the buffer can accomodate more bytes, ap_getline will continue to read. Revision Changes Path 1.84 +1 -1 httpd-2.0/server/core.c Index: core.c =================================================================== RCS file: /home/cvs/httpd-2.0/server/core.c,v retrieving revision 1.83 retrieving revision 1.84 diff -u -r1.83 -r1.84 --- core.c 2001/10/31 18:21:53 1.83 +++ core.c 2001/10/31 20:18:56 1.84 @@ -2939,7 +2939,7 @@ /* We didn't find an APR_ASCII_LF within the predefined maximum * line length. */ if (len >= HUGE_STRING_LEN) { - return -1; + return len; } }