[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



Author: Roger Dingledine <arma@xxxxxxxxxxxxxx>
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