More gracefully handle corrupt state files.

Save a backup if we get odd circuitbuildtimes and other state info.

In the case of circuit build times, we no longer assert, and reset our state.
This commit is contained in:
Mike Perry
2010-07-06 12:08:13 -07:00
parent 7bbdf71a82
commit a9edb0b4f6
3 changed files with 69 additions and 31 deletions
+2
View File
@@ -29,5 +29,7 @@
parameter and via a LearnCircuitBuildTimeout config option. Also
automatically disable circuit build time calculation if we are either
a AuthoritativeDirectory, or if we fail to write our state file. Bug 1296.
- More gracefully handle corrupt state files, removing asserts in favor
of saving a backup and resetting state.