Audit all of the "is the network turned off" checks.

DisableNetwork is a subset of net_is_disabled(), which is (now) a
subset of should_delay_dir_fetches().

Some of these changes are redundant with others higher or lower in
the call stack.  The ones that I think are behavior-relevant are
listed in the changes file.  I've also added comments in a few
places where the behavior is subtle.

Fixes bug 12062; bugfix on various versions.
This commit is contained in:
Nick Mathewson
2017-09-21 14:34:36 -04:00
parent 6045bdd4a0
commit 0c6eabf088
6 changed files with 42 additions and 9 deletions
+16
View File
@@ -0,0 +1,16 @@
o Minor bugfixes:
- When hibernating, do not attempt to launch DNS checks. Fixes a
case of bug 12062; bugfix on 0.1.2.2-alpha.
- Resolve several bugs related to descriptor fetching on bridge
clients with bandwidth accounting enabled. (This combination is
not recommended!) Fixes a case of bug 12062; bugfix on
0.2.0.3-alpha.
- When hibernating, do not try to upload or download
descriptors. Fixes a case of bug 12062; bugfix on 0.0.9pre5.
- Do not attempt to launch self-reachability tests when entering
hibernation. Fixes a base of bug 12062; bugfix on 0.0.9pre5.