httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@locus.apache.org
Subject cvs commit: apache-2.0/src/os/win32 mod_isapi.c
Date Fri, 28 Apr 2000 05:41:36 GMT
wrowe       00/04/27 22:41:36

  Modified:    src/os/win32 mod_isapi.c
  Log:
  
    Replace ERROR constant with TODO_ERROR to flag these for review.
  
    ERROR is a Windows.h constant of 0, or success, and is unrelated
    to the error codes!
  
  
  Revision  Changes    Path
  1.8       +7 -3      apache-2.0/src/os/win32/mod_isapi.c
  
  Index: mod_isapi.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/os/win32/mod_isapi.c,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- mod_isapi.c	2000/04/15 19:23:08	1.7
  +++ mod_isapi.c	2000/04/28 05:41:36	1.8
  @@ -88,6 +88,10 @@
   /* We use the exact same header file as the original */
   #include <HttpExt.h>
   
  +/* TODO: Unknown errors that must be researched for correct codes */
  +
  +#define TODO_ERROR 1
  +
   /* Seems IIS does not enforce the requirement for \r\n termination on HSE_REQ_SEND_RESPONSE_HEADER,
      define this to conform */
   #define RELAX_HEADER_RULE
  @@ -370,7 +374,7 @@
       }
   
       if ((writ = ap_rwrite(Buffer, *lpwdwBytes, r)) == EOF) {
  -            SetLastError(ERROR); /* TODO: Find the right error code */
  +            SetLastError(WSAEDISCON); /* TODO: Find the right error code */
               return FALSE;
       }
   
  @@ -453,7 +457,7 @@
                   if (!lf) { /* Huh? Invalid data, I think */
                           ap_log_rerror(APLOG_MARK, APLOG_ERR, r,
                                       "ISA sent invalid headers: %s", r->filename);
  -                        SetLastError(ERROR);    /* XXX: Find right error */
  +                        SetLastError(TODO_ERROR);
                           return FALSE;
                   }
   
  @@ -473,7 +477,7 @@
                   }
   
                   if (!(value = strchr(data, ':'))) {
  -                        SetLastError(ERROR);    /* TODO: Find right error */
  +                        SetLastError(TODO_ERROR);
                           ap_log_rerror(APLOG_MARK, APLOG_ERR, SERVER_ERROR, r,
                                             "ISA sent invalid headers", r->filename);
                           return FALSE;
  
  
  

Mime
View raw message