--- parser3/src/main/pa_request.C 2017/05/03 17:53:19 1.375 +++ parser3/src/main/pa_request.C 2019/11/22 22:37:30 1.378 @@ -33,7 +33,7 @@ #include "pa_vconsole.h" #include "pa_vdate.h" -volatile const char * IDENT_PA_REQUEST_C="$Id: pa_request.C,v 1.375 2017/05/03 17:53:19 moko Exp $" IDENT_PA_REQUEST_H IDENT_PA_REQUEST_CHARSETS_H IDENT_PA_REQUEST_INFO_H IDENT_PA_VCONSOLE_H; +volatile const char * IDENT_PA_REQUEST_C="$Id: pa_request.C,v 1.378 2019/11/22 22:37:30 moko Exp $" IDENT_PA_REQUEST_H IDENT_PA_REQUEST_CHARSETS_H IDENT_PA_REQUEST_INFO_H IDENT_PA_VCONSOLE_H; // consts @@ -634,7 +634,7 @@ void Request::use_file(const String& fil static String use("USE"); try { static VHash* voptions=new VHash(); - if(const Method *method=main_class.get_element_method(use_method_name)){ + if(const Method *method=main_class.get_method(use_method_name)){ Value *params[]={new VString(file_name), voptions}; voptions->hash().put(origin_key, new VString(*use_filespec)); @@ -777,7 +777,7 @@ static void parse_range(const String* s, static void output_pieces(Request& r, bool header_only, const String& filename, size_t content_length, Value& date, bool add_last_modified) { SAPI::add_header_attribute(r.sapi_info, "accept-ranges", "bytes"); - const size_t BUFSIZE = 10*0x400; + const size_t BUFSIZE = 128*0x400; char buf[BUFSIZE]; const char *range = SAPI::Env::get(r.sapi_info, "HTTP_RANGE"); size_t offset=0; @@ -830,10 +830,8 @@ static void output_pieces(Request& r, bo size_t to_read = 0; size_t size = 0; do{ - to_read = part_length