summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham Dumpleton <Graham.Dumpleton@gmail.com>2022-08-18 21:43:18 +1000
committerGraham Dumpleton <Graham.Dumpleton@gmail.com>2022-08-18 21:43:18 +1000
commit1ac5192470aec18883fef28dca09423ea20f767b (patch)
tree6d56457b5d6206a121cfaf8d46b39f9f0add5d00
parentd4990fab16c7f5c22c845f10181374fd158ec3f5 (diff)
downloadmod_wsgi-1ac5192470aec18883fef28dca09423ea20f767b.tar.gz
Try and force request body limit to unlimited in daemon process.
-rw-r--r--src/server/mod_wsgi.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/server/mod_wsgi.c b/src/server/mod_wsgi.c
index 924e1b8..4ae2eb4 100644
--- a/src/server/mod_wsgi.c
+++ b/src/server/mod_wsgi.c
@@ -12713,6 +12713,7 @@ static int wsgi_hook_daemon_handler(conn_rec *c)
apr_bucket_brigade *bb;
core_request_config *req_cfg;
+ core_dir_config *d;
ap_filter_t *current = NULL;
ap_filter_t *next = NULL;
@@ -12904,6 +12905,18 @@ static int wsgi_hook_daemon_handler(conn_rec *c)
r->per_dir_config = r->server->lookup_defaults;
+ /*
+ * Try and ensure that request body limit in daemon mode process
+ * is unlimited as Apache 2.4.54 changed rules for limit and if
+ * unset is now overridden by HTTP filters to be 1GiB rather than
+ * unlimited. Not sure if this is required or not but could be
+ * since we populate configuration from base server config only.
+ */
+
+ d = (core_dir_config *)ap_get_core_module_config(r->per_dir_config);
+
+ d->limit_req_body = 0;
+
r->sent_bodyct = 0;
r->read_length = 0;