Improve fallback selection and output
commit7e1b8ae79cc7da3b4a0989d6f9ba95aa5cd9b73b
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>
Wed, 30 Mar 2016 01:41:57 +0000 (30 12:41 +1100)
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>
Fri, 15 Apr 2016 02:21:32 +0000 (15 12:21 +1000)
tree37ae82618f0cf908b4882a47c3b0ac89788ad8ee
parent7babf33239eb1e349826753a9d0405cb59150cce
Improve fallback selection and output

Improve the download test:
* Allow IPv4 DirPort checks to be turned off.
* Add a timeout to stem's consensus download.
* Actually check for download errors, rather than ignoring them.
* Simplify the timeout and download error checking logic.

Tweak whitelist/blacklist checks to be more robust.
Improve logging, make it warn by default.

Cleanse fallback comments more thoroughly:
* non-printables (yes, ContactInfo can have these)
* // comments (don't rely on newlines to prevent // */ escapes)
scripts/maint/updateFallbackDirs.py