--- parser3/src/main/pa_request.C 2001/08/06 16:18:26 1.148 +++ parser3/src/main/pa_request.C 2001/08/10 08:58:56 1.150 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) */ -static const char *RCSId="$Id: pa_request.C,v 1.148 2001/08/06 16:18:26 parser Exp $"; +static const char *RCSId="$Id: pa_request.C,v 1.150 2001/08/10 08:58:56 parser Exp $"; #include "pa_config_includes.h" @@ -26,6 +26,8 @@ extern "C" unsigned char pcre_default_ta #include "pa_vfile.h" #include "pa_dictionary.h" +const int MAX_EXECUTE_SECONDS=1; + /// content type of exception response, when no @MAIN:exception handler defined const char *UNHANDLED_EXCEPTION_CONTENT_TYPE="text/plain"; @@ -145,6 +147,7 @@ static void element2case(unsigned char * from=c; } } + /** load MAIN class, execute @main. MAIN class consists of all the auto.p files we'd manage to find @@ -534,7 +537,7 @@ VStateless_class *Request::use_file(cons if(!file_spec) THROW(0, 0, &file_name, - "can not be loaded because no " CLASS_PATH_NAME " specified"); + "can not be found because no " CLASS_PATH_NAME " were specified"); } char *source=file_read_text(pool(), *file_spec, fail_on_read_problem);