summaryrefslogtreecommitdiff
path: root/include/httpd.h
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2020-04-01 22:56:44 +0000
committerYann Ylavic <ylavic@apache.org>2020-04-01 22:56:44 +0000
commit343cdd9bb4488c4f0c632583af8bb4bdae0a32dc (patch)
tree94f3e8526ca2a497d660930a9b945ab2b5a7d52f /include/httpd.h
parentfd5afc092ccd71a4e48a0f6c891ed6e1b14e187f (diff)
downloadhttpd-343cdd9bb4488c4f0c632583af8bb4bdae0a32dc.tar.gz
core: add r->flushed flag and set it when the response is sent.
By setting EOR->r->flushed in the core output filter, allow one to determine at log_transaction hook time whether the request has been fully flushed through the network, or not (network issue, filter error, n-th pipelined resposne...). Introduce the ap_bucket_eor_request() helper to get the request bound to an EOR bucket, and uses it in ap_core_output_filter() to mark the EOR's request just before destroying it, after all the previous buckets have been sent. While at it, rename the request_rec* member of struct ap_bucket_eor from "data" to "r", which makes the code clearer (not to be confused with b->data). Finally, add CustomLog format %F, showing "F" or "-" depending on r->flushed, for admins to figure out for each request. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1876017 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/httpd.h')
-rw-r--r--include/httpd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/httpd.h b/include/httpd.h
index 88c71c0c22..c3a81ba446 100644
--- a/include/httpd.h
+++ b/include/httpd.h
@@ -1092,6 +1092,11 @@ struct request_rec {
* Always use ap_request_tainted() to check taint.
*/
int taint;
+ /** Whether the response has been flushed through the network,
+ * relevant at ap_run_log_transaction() time only.
+ * TODO: compact elsewhere
+ */
+ unsigned int flushed:1;
};
/**