Diff for /parser3/src/targets/isapi/parser3isapi.C between versions 1.78 and 1.82

version 1.78, 2002/08/01 11:41:21 version 1.82, 2003/01/21 15:51:17
Line 1 Line 1
 /** @file  /** @file
         Parser: IIS extension.          Parser: IIS extension.
   
         Copyright (c) 2000,2001, 2002 ArtLebedev Group (http://www.artlebedev.com)          Copyright (c) 2000,2001, 2003 ArtLebedev Group (http://www.artlebedev.com)
         Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)          Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
 */  */
   
Line 91  void SAPI::die(const char *fmt, ...) { Line 91  void SAPI::die(const char *fmt, ...) {
                 vfprintf(log, fmt, args);                  vfprintf(log, fmt, args);
                 fclose(log);                  fclose(log);
         }          }
         exit(1);          // exit & try to produce core dump
           abort();
 }  }
   
 const char *SAPI::get_env(Pool& pool, const char *name) {  const char *SAPI::get_env(Pool& pool, const char *name) {
Line 382  void real_parser_handler(Pool& pool, LPE Line 383  void real_parser_handler(Pool& pool, LPE
         snprintf(config_filespec, MAX_STRING,           snprintf(config_filespec, MAX_STRING, 
                 "%s/%s",                   "%s/%s", 
                 beside_binary_path, AUTO_FILE_NAME);                  beside_binary_path, AUTO_FILE_NAME);
           bool fail_on_config_read_problem=entry_exists(config_filespec);
   
         // process the request          // process the request
         request.core(          request.core(
                 config_filespec, false /*fail_on_read_problem*/, // /path/to/first/auto.p                  config_filespec, fail_on_config_read_problem, // /path/to/first/auto.p
                 header_only);                  header_only);
 }  }
   
Line 422  inline DWORD RealHttpExtensionProc(LPEXT Line 424  inline DWORD RealHttpExtensionProc(LPEXT
         SAPI_func_context ctx={          SAPI_func_context ctx={
                 lpECB,                  lpECB,
                 0, // filling later: so that if there would be error pool would have ctx                  0, // filling later: so that if there would be error pool would have ctx
                 200 // default http_response_code                  200 // default http_response_code [lpECB->dwHttpStatusCode seems to be always 0, even on 404 redirect to /404.html]
         };          };
         pool.set_context(&ctx);// no allocations before this line!          pool.set_context(&ctx);// no allocations before this line!
   

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


E-mail: