[or-cvs] [tor/master] try loading the bandwidth measurement file on startup too,

Nick Mathewson nickm at seul.org
Fri Aug 14 21:14:02 UTC 2009


Author: Roger Dingledine <arma at torproject.org>
Date: Sun, 5 Jul 2009 22:47:36 -0400
Subject: try loading the bandwidth measurement file on startup too,
Commit: da88e05edc8c7180b3eb1a3f4c9e953aa1e7ef5b

in case it's broken.
---
 src/or/config.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/or/config.c b/src/or/config.c
index 952ac00..d0f6c83 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -3208,6 +3208,10 @@ options_validate(or_options_t *old_options, or_options_t *options,
           options->V3AuthoritativeDir))
       REJECT("AuthoritativeDir is set, but none of "
              "(Bridge/HS/V1/V2/V3)AuthoritativeDir is set.");
+    /* If we have a v3bandwidthsfile and it's broken, complain on startup */
+    if (options->V3BandwidthsFile && !old_options) {
+      dirserv_read_measured_bandwidths(options->V3BandwidthsFile, NULL);
+    }
   }
 
   if (options->AuthoritativeDir && !options->DirPort)
-- 
1.5.6.5




More information about the tor-commits mailing list