From: Jim Jagielski Date: Tue, 13 Dec 2016 13:15:59 +0000 (+0000) Subject: Some "error" reporting if we overflow X-Git-Tag: 2.5.0-alpha~917 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e4248cf1ee26c706cdb945f0a36fc1845e8b71a;p=thirdparty%2Fapache%2Fhttpd.git Some "error" reporting if we overflow git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1774008 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/log-message-tags/next-number b/docs/log-message-tags/next-number index 39c4610775f..4c7065af921 100644 --- a/docs/log-message-tags/next-number +++ b/docs/log-message-tags/next-number @@ -1 +1 @@ -3488 +3490 diff --git a/modules/filters/mod_ratelimit.c b/modules/filters/mod_ratelimit.c index 0f95e80a73e..64283c76c3a 100644 --- a/modules/filters/mod_ratelimit.c +++ b/modules/filters/mod_ratelimit.c @@ -97,6 +97,8 @@ rate_limit_filter(ap_filter_t *f, apr_bucket_brigade *input_bb) ratelimit = atoi(rl) * 1024; if (ratelimit <= 0) { /* remove ourselves */ + ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, f->r, + APLOGNO(03488) "rl: disabling: rate-limit = %s (too high?)", rl); ap_remove_output_filter(f); return ap_pass_brigade(f->next, bb); } @@ -106,7 +108,9 @@ rate_limit_filter(ap_filter_t *f, apr_bucket_brigade *input_bb) if (rl != NULL) { burst = atoi(rl) * 1024; if (burst <= 0) { - burst = 0; + ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, f->r, + APLOGNO(03489) "rl: disabling burst: rate-initial-burst = %s (too high?)", rl); + burst = 0; } }