--- parser3/src/targets/cgi/parser3.C 2003/02/14 17:28:20 1.216.2.3 +++ parser3/src/targets/cgi/parser3.C 2003/02/17 15:41:27 1.216.2.7 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_PARSER3_C="$Date: 2003/02/14 17:28:20 $"; +static const char* IDENT_PARSER3_C="$Date: 2003/02/17 15:41:27 $"; #include "pa_config_includes.h" @@ -29,17 +29,8 @@ static const char* IDENT_PARSER3_C="$Dat #endif //#define DEBUG_POOL_MALLOC -//#define DEBUG_STRING_APPENDS_VS_EXPANDS //#define DEBUG_MAILRECEIVE "mailreceive.eml" -#ifdef DEBUG_STRING_APPENDS_VS_EXPANDS -extern ulong - string_piece_appends, - wcontext_result_size, - total_alloc_size, - string_string_shortcut_economy; -#endif - // consts #define REDIRECT_PREFIX "REDIRECT_" @@ -321,9 +312,9 @@ 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=new(request_pool) char[ strlen(path_info)+1/*'?'*/+ - strlen(query_string)+1/*0*/); + strlen(query_string)+1/*0*/]; strcpy(reconstructed_uri, path_info); strcat(reconstructed_uri, "?"); strcat(reconstructed_uri, query_string); @@ -378,7 +369,7 @@ static void real_parser_handler( // prepare to process request - Request request(SAPI_info, request_pool, + Request request(request_pool, SAPI_info, request_info, /*#ifdef _DEBUG String::UL_HTML|String::UL_OPTIMIZE_BIT @@ -432,16 +423,6 @@ static void real_parser_handler( extern void log_pool_stats(Pool& pool); log_pool_stats(request_pool); #endif - -#ifdef DEBUG_STRING_APPENDS_VS_EXPANDS - SAPI::log(SAPI_info, - "string piece appends=%lu, wcontext_result_size=%lu, string_string_shortcut_economy_closer=%lu, total_alloc_size=%lu", - string_piece_appends, - wcontext_result_size, - string_string_shortcut_economy, - total_alloc_size); -#endif - } static void call_real_parser_handler__do_SEH( @@ -521,7 +502,7 @@ int main(int argc, char *argv[]) { #endif #ifdef _DEBUG -// _crtBreakAlloc=33112; + //_crtBreakAlloc=1684; #endif // _asm int 3; argv0=argv[0];