--- parser3/src/targets/cgi/parser3.C 2003/01/21 15:51:17 1.216 +++ parser3/src/targets/cgi/parser3.C 2003/03/17 14:48:06 1.216.4.1 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_PARSER3_C="$Date: 2003/01/21 15:51:17 $"; +static const char* IDENT_PARSER3_C="$Date: 2003/03/17 14:48:06 $"; #include "pa_config_includes.h" @@ -21,8 +21,6 @@ static const char* IDENT_PARSER3_C="$Dat #include "pa_socks.h" #include "pa_version.h" -#include "pool_storage.h" - #ifdef WIN32 # include # include "getopt.h" @@ -54,8 +52,7 @@ static const char *argv0; static const char *config_filespec_cstr=0; static bool fail_on_config_read_problem=true; -static Pool_storage global_pool_storage; ///< global pool storage -static Pool global_pool(&global_pool_storage); ///< global pool +static Pool global_pool(0); ///< global pool static bool cgi; ///< we were started as CGI? static bool mail_received=false; ///< we were started with -m option? [asked to parse incoming message to $mail:received] @@ -276,7 +273,7 @@ static void real_parser_handler( pa_globals_init(global_pool); // request pool, must be different ptr from global [used in VStateless_class.add_method] - Pool request_pool(&global_pool_storage); + Pool request_pool(0); if(!filespec_to_process || !*filespec_to_process) SAPI::die("Parser/%s", PARSER_VERSION); @@ -318,7 +315,7 @@ static void real_parser_handler( request_info.uri=env_request_uri; else if(query_string) { - char *reconstructed_uri=(char *)request_pool.malloc( + char *reconstructed_uri=(char *)request_pool.malloc_atomic( strlen(path_info)+1/*'?'*/+ strlen(query_string)+1/*0*/); strcpy(reconstructed_uri, path_info); @@ -444,7 +441,7 @@ static void real_parser_handler( static void call_real_parser_handler__do_SEH( const char *filespec_to_process, const char *request_method, bool header_only) { -#if _MSC_VER && !defined(_DEBUG) +#if _MSC_VER && !defined(_DEBUG) && 0 LPEXCEPTION_POINTERS system_exception=0; __try { #endif @@ -452,7 +449,7 @@ static void call_real_parser_handler__do filespec_to_process, request_method, header_only); -#if _MSC_VER && !defined(_DEBUG) +#if _MSC_VER && !defined(_DEBUG) && 0 } __except ( (system_exception=GetExceptionInformation()), EXCEPTION_EXECUTE_HANDLER) { @@ -590,7 +587,7 @@ int main(int argc, char *argv[]) { // Set flag to the new value _CrtSetDbgFlag( tmpFlag ); -// _CrtSetBreakAlloc(471); + //_CrtSetBreakAlloc(60); #endif @@ -616,7 +613,7 @@ int main(int argc, char *argv[]) { // and there could be out-of-memory exception SAPI::die("exception in request exception handler: %s", e.comment()); -#ifndef _DEBUG +#if !defined(_DEBUG) && 0 } catch(...) { SAPI::die(""); #endif