summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJustin Erenkrantz <jerenkrantz@apache.org>2002-01-02 08:56:25 +0100
committerJustin Erenkrantz <jerenkrantz@apache.org>2002-01-02 08:56:25 +0100
commit8c16aeeeb84ef7c2fc447bc7abf2f879bb4a0f4d (patch)
tree348a66ed587d6a54fbd471689e1aae358fe36cde /include
parentRemove a needless immortal bucket creation. We can just leave the (diff)
downloadapache2-8c16aeeeb84ef7c2fc447bc7abf2f879bb4a0f4d.tar.xz
apache2-8c16aeeeb84ef7c2fc447bc7abf2f879bb4a0f4d.zip
Fix LimitRequestBody directive by moving the relevant code from
ap_*_client_block to ap_http_filter (aka HTTP_IN). This is the only appropriate place for limit checking to occur (otherwise, chunked input is not correctly limited). Also changed the type of limit_req_body to apr_off_t to match the other types inside of HTTP_IN. Also made the strtol call for limit_req_body a bit more robust. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92700 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r--include/http_core.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/http_core.h b/include/http_core.h
index 7220f2d7cf..402d51152c 100644
--- a/include/http_core.h
+++ b/include/http_core.h
@@ -234,9 +234,9 @@ AP_DECLARE(apr_port_t) ap_get_server_port(const request_rec *r);
* Return the limit on bytes in request msg body
* @param r The current request
* @return the maximum number of bytes in the request msg body
- * @deffunc unsigned long ap_get_limit_req_body(const request_rec *r)
+ * @deffunc apr_off_t ap_get_limit_req_body(const request_rec *r)
*/
-AP_DECLARE(unsigned long) ap_get_limit_req_body(const request_rec *r);
+AP_DECLARE(apr_off_t) ap_get_limit_req_body(const request_rec *r);
/**
* Return the limit on bytes in XML request msg body
@@ -471,7 +471,7 @@ typedef struct {
#ifdef RLIMIT_NPROC
struct rlimit *limit_nproc;
#endif
- unsigned long limit_req_body; /* limit on bytes in request msg body */
+ apr_off_t limit_req_body; /* limit on bytes in request msg body */
long limit_xml_body; /* limit on bytes in XML request msg body */
/* logging options */