*) core: add final_resp_passed flag to request_rec to allow

ap_die() to judge if it can send out a response. Bump mmn.
     Enable test cases that check errors during response body to
     appear as error on client side.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910161 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stefan Eissing
2023-06-01 12:21:03 +00:00
parent 1c7a70c9d9
commit ed69ae3384
8 changed files with 58 additions and 49 deletions

View File

@ -717,6 +717,7 @@
* 20211221.12 (2.5.1-dev) Add cmd_parms->regex
* 20211221.13 (2.5.1-dev) Add hook token_checker to check for authorization other
* than username / password. Add autht_provider structure.
* 20211221.14 (2.5.1-dev) Add request_rec->final_resp_passed bit
*/
#define MODULE_MAGIC_COOKIE 0x41503235UL /* "AP25" */
@ -724,7 +725,7 @@
#ifndef MODULE_MAGIC_NUMBER_MAJOR
#define MODULE_MAGIC_NUMBER_MAJOR 20211221
#endif
#define MODULE_MAGIC_NUMBER_MINOR 13 /* 0...n */
#define MODULE_MAGIC_NUMBER_MINOR 14 /* 0...n */
/**
* Determine if the server's current MODULE_MAGIC_NUMBER is at least a

View File

@ -1152,6 +1152,11 @@ struct request_rec {
* to conclude that no body is there.
*/
int body_indeterminate;
/** Whether a final (status >= 200) RESPONSE BUCKET has been passed down
* the output filters already. Relevant for ap_die().
* TODO: compact elsewhere
*/
unsigned int final_resp_passed:1;
};
/**