--- parser3/src/targets/apache13/modules/extra/Attic/mod_parser3.C 2001/04/09 15:48:59 1.26 +++ parser3/src/targets/apache13/modules/extra/Attic/mod_parser3.C 2001/06/28 07:44:17 1.35 @@ -4,9 +4,8 @@ Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - - $Id: mod_parser3.C,v 1.26 2001/04/09 15:48:59 paf Exp $ */ +static const char *RCSId="$Id: mod_parser3.C,v 1.35 2001/06/28 07:44:17 parser Exp $"; #include "httpd.h" #include "http_config.h" @@ -17,17 +16,17 @@ #include "util_script.h" #include "pa_sapi.h" +#include "classes.h" #include "pa_common.h" #include "pa_globals.h" #include "pa_request.h" #include "pa_version.h" #include "pa_socks.h" -/// @todo init_socks - +/// apache parser module configuration [httpd.conf + .htaccess-es] struct Parser_module_config { - const char* parser_root_auto_path; /// filespec of admin's auto.p file - const char* parser_site_auto_path; /// filespec of site's auto.p file + const char* parser_root_auto_path; ///< filespec of admin's auto.p file + const char* parser_site_auto_path; ///< filespec of site's auto.p file }; /* @@ -155,29 +154,6 @@ void SAPI::send_body(Pool& pool, const v ap_kill_timeout(r); } -int SAPI::execute(Pool& pool, - const String& file_spec, - const Hash *env, - const Array *argv, - const String& in, String& out, String& err) { - request_rec *r=static_cast(pool.context()); - - /* - * we spawn out of r->main if it's there so that we can avoid - * waiting for free_proc_chain to cleanup in the middle of an - * SSI request -djg - */ - if(!ap_bspawn_child(r->main ? r->main->pool : r->pool, cgi_child, - (void *) &cld, kill_after_timeout, - &script_out, &script_in, &script_err)) - PTHROW(0, 0, - &file_spec, - "could not spawn child process"); - - - return pa_exec(file_spec, env, argv, in, out, err); -} - //@} /** @@ -218,7 +194,7 @@ static int parser_handler(request_rec *r // prepare to process request Request request(pool, request_info, - String::UL_HTML_TYPO + String::UL_USER_HTML ); // process the request @@ -314,6 +290,11 @@ static void setup_module_cells() { */ static Pool pool(ap_make_sub_pool(NULL)); // global pool PTRY { + // init socks + init_socks(pool); + + // init global classes + init_methoded_array(pool); // init global variables pa_globals_init(pool); } PCATCH(e) { // global problem