Diff for /parser3/src/targets/cgi/parser3.C between versions 1.78 and 1.86

version 1.78, 2001/05/15 11:36:15 version 1.86, 2001/05/21 07:58:41
Line 21 Line 21
 #include "pa_socks.h"  #include "pa_socks.h"
 #include "pa_version.h"  #include "pa_version.h"
   
   //#define DEBUG_POOL_MALLOC
   
   
 /// IIS refuses to read bigger chunks  /// IIS refuses to read bigger chunks
 const size_t READ_POST_CHUNK_SIZE=0x400*0x400; // 1M   const size_t READ_POST_CHUNK_SIZE=0x400*0x400; // 1M 
   
Line 49  static LONG WINAPI TopLevelExceptionFilt Line 52  static LONG WINAPI TopLevelExceptionFilt
 #endif  #endif
   
 // SAPI  // SAPI
 // appends to parser3.log located beside my binary  
   // appends to parser3.log located beside my binary if openable, to stderr otherwize
 void SAPI::log(Pool& pool, const char *fmt, ...) {  void SAPI::log(Pool& pool, const char *fmt, ...) {
         bool opened;          bool opened;
         FILE *f=0;          FILE *f=0;
Line 80  void SAPI::log(Pool& pool, const char *f Line 84  void SAPI::log(Pool& pool, const char *f
   
         if(opened)          if(opened)
                 fclose(f);                  fclose(f);
           else
                   fflush(f);
 }  }
   
 const char *SAPI::get_env(Pool& pool, const char *name) {  const char *SAPI::get_env(Pool& pool, const char *name) {
Line 268  int main(int argc, char *argv[]) { Line 274  int main(int argc, char *argv[]) {
                 static char site_auto_path[MAX_STRING];                  static char site_auto_path[MAX_STRING];
                 strncpy(site_auto_path, argv[0], MAX_STRING);  // filespec of my binary                  strncpy(site_auto_path, argv[0], MAX_STRING);  // filespec of my binary
                 rsplit(site_auto_path, '/');  rsplit(site_auto_path, '\\');// strip filename                  rsplit(site_auto_path, '/');  rsplit(site_auto_path, '\\');// strip filename
                   SAPI::log(pool, "r=%s, s=%s", 
                           root_auto_path, 
                           site_auto_path);
                                   
                 // process the request                  // process the request
                 request.core(                  request.core(
Line 278  int main(int argc, char *argv[]) { Line 287  int main(int argc, char *argv[]) {
                 //                  //
                 done_socks();                  done_socks();
   
   #ifdef DEBUG_POOL_MALLOC
                 extern void log_pool_stats(Pool& pool);                  extern void log_pool_stats(Pool& pool);
                 log_pool_stats(pool);                  log_pool_stats(pool);
   #endif
   
                 // must be last in PTRY{}PCATCH                  // must be last in PTRY{}PCATCH
 #ifdef WIN32  #ifdef WIN32

Removed from v.1.78  
changed lines
  Added in v.1.86


E-mail: