--- parser3/src/targets/cgi/parser3.C 2001/03/24 14:56:09 1.45 +++ parser3/src/targets/cgi/parser3.C 2001/04/20 09:04:16 1.66 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: parser3.C,v 1.45 2001/03/24 14:56:09 paf Exp $ + $Id: parser3.C,v 1.66 2001/04/20 09:04:16 paf Exp $ */ #include "pa_config_includes.h" @@ -14,16 +14,13 @@ # include #endif -#include -#include -#include -#include -#include - #include "pa_sapi.h" #include "pa_common.h" #include "pa_globals.h" #include "pa_request.h" +#include "pa_socks.h" + +/// @test disable /cgi-bin/parser3/auto.p /// IIS refuses to read bigger chunks const size_t READ_POST_CHUNK_SIZE=0x400*0x400; // 1M @@ -38,7 +35,7 @@ static LONG WINAPI TopLevelExceptionFilt char buf[MAX_STRING]; if(ExceptionInfo && ExceptionInfo->ExceptionRecord) { struct _EXCEPTION_RECORD *er=ExceptionInfo->ExceptionRecord; - snprintf(buf, MAX_STRING, "Exception %#X at %p", + snprintf(buf, MAX_STRING, "Exception 0x%X at %p", er->ExceptionCode, er->ExceptionAddress); } else @@ -52,45 +49,8 @@ static LONG WINAPI TopLevelExceptionFilt } #endif -//@{ -/// SAPI funcs decl -const char *SAPI::get_env(Pool& pool, const char *name) { - return getenv(name); -} - -uint SAPI::read_post(Pool& pool, char *buf, uint max_bytes) { - uint read_size=0; - do { - int chunk_size=read(fileno(stdin), - buf+read_size, min(READ_POST_CHUNK_SIZE, max_bytes-read_size)); - if(chunk_size<0) - break; - read_size+=chunk_size; - } while(read_size