]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
add a rate-limit.
authorNick Mathewson <nickm@torproject.org>
Wed, 31 Jan 2018 15:01:10 +0000 (10:01 -0500)
committerNick Mathewson <nickm@torproject.org>
Wed, 31 Jan 2018 15:01:10 +0000 (10:01 -0500)
src/or/consdiffmgr.c

index e2bb31e527520ea7d4d09381fda0ee351b7fe44b..18aa9c2c05c44074e0b86999e21ceb359ea7171c 100644 (file)
@@ -1311,8 +1311,10 @@ store_multiple(consensus_cache_entry_handle_t **handles_out,
                             body_out,
                             bodylen_out);
       if (ent == NULL) {
-        log_warn(LD_FS, "Unable to store object %s compressed with %s.",
-                 description, methodname);
+        static ratelim_t cant_store_ratelim = RATELIM_INIT(5*70);
+        log_fn_ratelim(&cant_store_ratelim, LOG_WARN, LD_FS,
+                       "Unable to store object %s compressed with %s.",
+                       description, methodname);
         continue;
       }