From 6e4248cf1ee26c706cdb945f0a36fc1845e8b71a Mon Sep 17 00:00:00 2001 From: Jim Jagielski Date: Tue, 13 Dec 2016 13:15:59 +0000 Subject: [PATCH] Some "error" reporting if we overflow git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1774008 13f79535-47bb-0310-9956-ffa450edef68 --- docs/log-message-tags/next-number | 2 +- modules/filters/mod_ratelimit.c | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/log-message-tags/next-number b/docs/log-message-tags/next-number index 39c4610775..4c7065af92 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 0f95e80a73..64283c76c3 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; } } -- 2.40.0