Mailing List Archive

cvs commit: apache/src CHANGES http_request.c httpd.h
dgaudet 97/06/28 14:46:59

Modified: src CHANGES http_request.c httpd.h
Log:
Add DONE response.

Submitted by: Rob Hartill
Reviewed by: Dean Gaudet

Revision Changes Path
1.303 +5 -1 apache/src/CHANGES

Index: CHANGES
===================================================================
RCS file: /export/home/cvs/apache/src/CHANGES,v
retrieving revision 1.302
retrieving revision 1.303
diff -C3 -r1.302 -r1.303
*** CHANGES 1997/06/28 21:45:09 1.302
--- CHANGES 1997/06/28 21:46:56 1.303
***************
*** 1,9 ****
Changes with Apache 1.3

*) mod_expire also issues Cache-Control: max-age headers.
[Rob Hartill]

! *) Added kill_only_once option for free_proc_chain so that it won't
aggressively try to kill off specific children. For fastcgi.
[Stanley Gambarin <gambarin@OpenMarket.com>]

--- 1,13 ----
Changes with Apache 1.3

+ *) API: A new handler response DONE which informs apache that the
+ request has been handled and it can finish off quickly, similar to
+ how it handles errors. [Rob Hartill]
+
*) mod_expire also issues Cache-Control: max-age headers.
[Rob Hartill]

! *) API: Added kill_only_once option for free_proc_chain so that it won't
aggressively try to kill off specific children. For fastcgi.
[Stanley Gambarin <gambarin@OpenMarket.com>]




1.53 +2 -0 apache/src/http_request.c

Index: http_request.c
===================================================================
RCS file: /export/home/cvs/apache/src/http_request.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -C3 -r1.52 -r1.53
*** http_request.c 1997/06/24 03:03:47 1.52
--- http_request.c 1997/06/28 21:46:57 1.53
***************
*** 782,787 ****
--- 782,789 ----
int error_index = index_of_response (type);
char *custom_response = response_code_string(r, error_index);
int recursive_error = 0;
+
+ if (type == DONE) return;

/* The following takes care of Apache redirects to custom response URLs
* Note that if we are already dealing with the response to some other



1.115 +3 -0 apache/src/httpd.h

Index: httpd.h
===================================================================
RCS file: /export/home/cvs/apache/src/httpd.h,v
retrieving revision 1.114
retrieving revision 1.115
diff -C3 -r1.114 -r1.115
*** httpd.h 1997/06/23 23:56:18 1.114
--- httpd.h 1997/06/28 21:46:57 1.115
***************
*** 269,274 ****
--- 269,277 ----
#define SERVER_SUPPORT "http://www.apache.org/"

#define DECLINED -1 /* Module declines to handle */
+ #define DONE -2 /* Module has served the response completely
+ * - it's safe to die() with no more output
+ */
#define OK 0 /* Module has handled this stage. */