| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
| |
Partial backport candidate: do not rely on finding a \0 after an mmaped() router/extrainfo file. Also, set journal length correctly when starting up.
svn:r10248
|
|
|
|
|
|
|
| |
Oops; it is possible to have an empty store.
svn:r10247
|
|
|
|
|
|
|
| |
Oops. It compiles better when you spell the fields right.
svn:r10245
|
|
|
|
|
|
|
| |
Partial backport candidate. Fix issue noted in r10241: stores were rebuilt too often. Also notes dropped bytes better.
svn:r10244
|
|
|
|
|
|
|
| |
often than we need to. reported by lodger.
svn:r10241
|
|
|
|
|
|
|
|
| |
lodger -- it has never actually worked, even though we added it
in Oct 2004.)
svn:r10238
|
|
|
|
|
|
| |
correct mmap
svn:r10233
|
|
|
|
|
|
|
| |
More bulletproofing on bug 429
svn:r10231
|
|
|
|
|
|
|
| |
Provide actual reasons when dropping an uploaded extrainfo for incompatibility; also, clean whitespace.
svn:r10230
|
|
|
|
|
|
|
| |
Address points in r10227.
svn:r10229
|
| |
|
|
|
|
|
|
|
| |
items we should probably look into.
svn:r10227
|
|
|
|
|
|
|
| |
Look for extrainfo bodies in the extrainfo mmap, not in the descriptor mmap. Duh. Should fix bug 429.
svn:r10226
|
|
|
|
| |
svn:r10224
|
|
|
|
|
|
|
| |
Fix bugs in extrainfo_insert, and change it to use desc_by_eid_map.
svn:r10222
|
|
|
|
|
|
|
| |
Fix another consistency error.
svn:r10221
|
|
|
|
|
|
|
| |
Fix a groovy memory corruption bug in routerlist_replace.
svn:r10220
|
|
|
|
|
|
|
| |
clear some ram when freeing it; add some more checks to assert_routerlist_ok.
svn:r10218
|
|
|
|
|
|
|
| |
Yet more debugging code to track down 417/404, inspired by a fun core from arma.
svn:r10216
|
|
|
|
|
|
|
| |
Partial backport candidate: We had a bug where we were downloading descriptors by descriptor digest, but trying to look them up by identity fingerprint when updating their failure count and next retry time. (Also use correct backoff logic for extrainfo code.) Needs testing, doubtless.
svn:r10210
|
|
|
|
|
|
|
| |
First cut at code to download extra-info docs. Also note a bad bug in directory.c (look for the string BUG BUG BUG).
svn:r10209
|
|
|
|
|
|
|
| |
Make -Wstrict-overflow=5 happy with GCC 4.2. It is kind of a pain, but it does agood job of letting us know where we can make our code better by simplifying dependent conditionals.
svn:r10201
|
|
|
|
|
|
|
| |
Cleanup, lock-down, and refactor bits of routerparse.c: use a single unified function to check all signatures. Fix all DOCDOCs. Remove some old dead debugging code. Enforce some parsing rules better.
svn:r10192
|
|
|
|
|
|
|
| |
this patch too.
svn:r10187
|
|
|
|
| |
svn:r10182
|
|
|
|
|
|
|
|
|
| |
networkstatus objects or descriptors. Otherwise we keep asking
every 10 seconds forever.
(adapted from r9880)
svn:r10175
|
|
|
|
|
|
|
| |
Patch from shibz: implement a getinfo status/version/... so a controller can tell whether the current version is recommended, whether any versions are good, and how many authorities agree.
svn:r10162
|
|
|
|
|
|
|
|
|
|
|
| |
dirservers lines, we ignored as many as k v2 authorities while
updating our network-statuses.
(not a problem right now since we have zero non-v2 authorities.
but if we ever change that...)
svn:r10157
|
|
|
|
|
|
|
|
| |
bad or no networkstatuses lately, then stop hammering them
once per minute even if we think they're failed.
svn:r10156
|
|
|
|
|
|
|
|
| |
network-status but we don't want to keep it. Otherwise we'll keep fetching
it and keep not wanting to keep it. Fixes part of bug 422.
svn:r10153
|
|
|
|
| |
svn:r10151
|
|
|
|
|
|
|
| |
Change authority_type_t to a set of flags; use it more consistently.
svn:r10144
|
|
|
|
| |
svn:r10128
|
|
|
|
|
|
|
|
|
|
|
| |
authorities should set. This will let future authorities choose
not to serve V2 directory information.
Also, go through and revamp all the authdir_mode stuff so it tries
to do the right thing if you're an auth but not a V1 or V2 auth.
svn:r10092
|
|
|
|
|
|
|
| |
Add code to upload extrainfos to authorities running 0.2.0.0-alpha-dev (r10070) or later.
svn:r10086
|
|
|
|
|
|
|
| |
More work for proposal 104: actually cache extrainfo documents to disk, and reload the cache properly.
svn:r10070
|
|
|
|
|
|
|
| |
Oops. Routerlist_check_bug_417 should work even if we are not on a server.
svn:r10066
|
|
|
|
|
|
| |
-1, not 0.
svn:r10060
|
|
|
|
|
|
|
| |
Suggested by weasel: Add a fast function to check for the common failure mode for bug 417/404, and call it a lot.
svn:r10059
|
|
|
|
|
|
|
| |
Oops; the rest of the last patch. If that one gets backported, this should too.
svn:r10053
|
|
|
|
|
|
|
| |
Backport candidate: Add asserts to dirserv_remove_invalid, and fix a bug in dirserv_remove_invalid that could mess with pointers in a freed routerinfo right after it was freed.
svn:r10052
|
|
|
|
|
|
|
|
| |
we have no cached directory info. This means Tor clients can now
do all of their connections protected by TLS.
svn:r10035
|
|
|
|
|
|
|
| |
Even more asserts to try to catch bug 404/417.
svn:r10003
|
|
|
|
|
|
|
| |
More proposal-104 stuff: actually remember extra-info stuff.
svn:r9975
|
|
|
|
| |
svn:r9972
|
|
|
|
|
|
|
| |
More proposal-104 stuff: add most of the code for authorities to accept and serve extra-info documents. The back-end to store the things is missing.
svn:r9971
|
|
|
|
|
|
|
| |
Code to generate extrainfo whenever routerdesc is regenerated; code to check extrainfo against routerdesc.
svn:r9970
|
|
|
|
|
|
|
| |
Initial code to parse extra-info documents as described in proposal 104. This is making me realize that the parsing code in routerparse.c is a little daft.
svn:r9963
|
|
|
|
|
|
|
|
|
| |
we get one we don't recognize.
backport candidate.
backbackport candidate.
svn:r9918
|
|
|
|
|
|
|
| |
Add documentation for make_old argument to routerlist functions.
svn:r9906
|