--- parser3/src/targets/cgi/parser3.C 2001/04/25 10:25:37 1.72 +++ parser3/src/targets/cgi/parser3.C 2001/05/19 19:10:20 1.84 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: parser3.C,v 1.72 2001/04/25 10:25:37 paf Exp $ + $Id: parser3.C,v 1.84 2001/05/19 19:10:20 parser Exp $ */ #include "pa_config_includes.h" @@ -15,12 +15,15 @@ #endif #include "pa_sapi.h" +#include "classes.h" #include "pa_common.h" -#include "pa_globals.h" #include "pa_request.h" #include "pa_socks.h" #include "pa_version.h" +//#define DEBUG_POOL_MALLOC + + /// IIS refuses to read bigger chunks const size_t READ_POST_CHUNK_SIZE=0x400*0x400; // 1M @@ -173,6 +176,8 @@ int main(int argc, char *argv[]) { // init socks init_socks(pool); + // init global classes + init_methoded_array(pool); // init global variables pa_globals_init(pool); @@ -249,7 +254,7 @@ int main(int argc, char *argv[]) { // prepare to process request Request request(pool, request_info, - cgi ? String::UL_HTML_TYPO : String::UL_AS_IS + true ||cgi ? String::UL_USER_HTML : String::UL_AS_IS ); // some root-controlled location @@ -276,6 +281,11 @@ int main(int argc, char *argv[]) { // done_socks(); +#ifdef DEBUG_POOL_MALLOC + extern void log_pool_stats(Pool& pool); + log_pool_stats(pool); +#endif + // must be last in PTRY{}PCATCH #ifdef WIN32 SetUnhandledExceptionFilter(0);