From: William A. Rowe Jr Date: Fri, 28 Apr 2000 05:41:36 +0000 (+0000) Subject: Replace ERROR constant with TODO_ERROR to flag these for review. X-Git-Tag: APACHE_2_0_ALPHA_3~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7900eb9cfff4e1c15a97709212988182763d2f7;p=thirdparty%2Fapache%2Fhttpd.git 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! git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85070 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/arch/win32/mod_isapi.c b/modules/arch/win32/mod_isapi.c index 11b34426113..ca5789ecf2d 100644 --- a/modules/arch/win32/mod_isapi.c +++ b/modules/arch/win32/mod_isapi.c @@ -88,6 +88,10 @@ /* We use the exact same header file as the original */ #include +/* 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 @@ BOOL WINAPI WriteClient (HCONN ConnID, LPVOID Buffer, LPDWORD lpwdwBytes, } 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 @@ BOOL WINAPI ServerSupportFunction (HCONN hConn, DWORD dwHSERequest, 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 @@ BOOL WINAPI ServerSupportFunction (HCONN hConn, DWORD dwHSERequest, } 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; diff --git a/os/win32/mod_isapi.c b/os/win32/mod_isapi.c index 11b34426113..ca5789ecf2d 100644 --- a/os/win32/mod_isapi.c +++ b/os/win32/mod_isapi.c @@ -88,6 +88,10 @@ /* We use the exact same header file as the original */ #include +/* 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 @@ BOOL WINAPI WriteClient (HCONN ConnID, LPVOID Buffer, LPDWORD lpwdwBytes, } 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 @@ BOOL WINAPI ServerSupportFunction (HCONN hConn, DWORD dwHSERequest, 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 @@ BOOL WINAPI ServerSupportFunction (HCONN hConn, DWORD dwHSERequest, } 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;