]> granicus.if.org Git - apache/commitdiff
Some "error" reporting if we overflow
authorJim Jagielski <jim@apache.org>
Tue, 13 Dec 2016 13:15:59 +0000 (13:15 +0000)
committerJim Jagielski <jim@apache.org>
Tue, 13 Dec 2016 13:15:59 +0000 (13:15 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1774008 13f79535-47bb-0310-9956-ffa450edef68

docs/log-message-tags/next-number
modules/filters/mod_ratelimit.c

index 39c4610775fc36f6e2c7a1b4539cbf8a5e9f8abe..4c7065af921cab0daef6479cd7d4c1a4399b9629 100644 (file)
@@ -1 +1 @@
-3488
+3490
index 0f95e80a73e432342c86370e1ee14fe296cf8fa0..64283c76c3adca87abca45b456a7f02112daebd5 100644 (file)
@@ -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;
             }
         }