--- parser3/src/targets/cgi/parser3.C 2001/10/29 13:04:47 1.126 +++ parser3/src/targets/cgi/parser3.C 2001/11/08 11:52:34 1.130 @@ -2,9 +2,9 @@ Parser: scripting and CGI main. Copyright(c) 2001 ArtLebedev Group(http://www.artlebedev.com) - Author: Alexander Petrosyan (http://design.ru/paf) + Author: Alexander Petrosyan (http://paf.design.ru) - $Id: parser3.C,v 1.126 2001/10/29 13:04:47 paf Exp $ + $Id: parser3.C,v 1.130 2001/11/08 11:52:34 paf Exp $ */ #include "pa_config_includes.h" @@ -25,7 +25,7 @@ #include #endif -#define DEBUG_POOL_MALLOC +//#define DEBUG_POOL_MALLOC // consts @@ -127,7 +127,7 @@ size_t SAPI::read_post(Pool& , char *buf do { int chunk_size=read(fileno(stdin), buf+read_size, min(READ_POST_CHUNK_SIZE, max_bytes-read_size)); - if(chunk_size<0) + if(chunk_size<=0) break; read_size+=chunk_size; } while(read_size(http://design.ru/paf)\n" + "Author: Alexander Petrosyan (http://paf.design.ru)\n" "\n" "Usage: %s \n", PARSER_VERSION,