| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
| |
When freeing slack buffers, free the buffers at the end of the freelist first.
svn:r10313
|
|
|
|
|
|
|
| |
Optimize digestmap_set, since it sometimes shows up in profiles. Seems to work so far, but it isnt the prettiest thing ever.
svn:r10312
|
|
|
|
|
|
|
| |
and remove an XXX012.
svn:r10308
|
|
|
|
|
|
|
| |
backport candidate: Warn when using a version of libevent before 1.3b to run a server on osx or bsd: these versions of libevent interact badly with userspace threads.
svn:r10307
|
|
|
|
|
|
|
| |
Make reset_download_failures() reset extrainfo download status too.
svn:r10306
|
|
|
|
|
|
|
| |
Put the hash-as-signed, not the raw hash, in the signed_descriptor_digest field of our own descriptor. Backport candidate; probably harmless though.
svn:r10305
|
|
|
|
|
|
|
| |
Add math functions to round values to the nearest power of 2. Make mempools more careful about making sure that the size of their chunks is a little less than a power of 2, not a little more.
svn:r10304
|
|
|
|
|
|
|
| |
Do not send a warning when somebody uploads an extrainfo that we will reject, if it happens to be newer than our current routerdesc.
svn:r10303
|
|
|
|
|
|
|
| |
s/32/64/; s/breaks/works/;
svn:r10297
|
|
|
|
| |
svn:r10296
|
|
|
|
|
|
|
| |
First draft of code to generate votes. needs testing. does not yet upload or serve votes. Shares most of its code with the old generate_v2_networkstatus.
svn:r10295
|
|
|
|
|
|
|
| |
Extract common code from networkstatus_getinfo_helper_single() and generate_v2_networkstatus().
svn:r10294
|
|
|
|
|
|
|
| |
More v3 directory code: have authorities load certificates; have everybody store certificates to disk and load them; provide a way to configure v3 authorities.
svn:r10293
|
|
|
|
|
|
|
| |
Make connection_array into a smartlist.
svn:r10292
|
|
|
|
|
|
|
| |
Use svn revisions consistently throughout all log messages.
svn:r10291
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
svn:r10242
|
|
|
|
|
|
|
| |
often than we need to. reported by lodger.
svn:r10241
|
|
|
|
|
|
|
|
| |
that are in the same family as the chosen exit -- not just guards
that are exactly the chosen exit. (Reported by lodger.)
svn:r10240
|
|
|
|
| |
svn:r10239
|
|
|
|
|
|
|
|
| |
lodger -- it has never actually worked, even though we added it
in Oct 2004.)
svn:r10238
|
|
|
|
|
|
|
| |
Bugfix and possible backport candidate: use the same logic as in read_all when reading resolv.conf. Maybe this fixes bug 433.
svn:r10237
|
|
|
|
| |
svn:r10236
|
|
|
|
|
|
| |
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 compilation with -O0; add unit tests for swap and shuffle.
svn:r10223
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Disable a blatantly incorrect control event with potential for memory corruption.
svn:r10219
|
|
|
|
|
|
|
| |
clear some ram when freeing it; add some more checks to assert_routerlist_ok.
svn:r10218
|
|
|
|
|
|
|
| |
Possible fix for bug 417 and bug 404: do not insert our routerinfo directly; instead, re-parse it first.
svn:r10217
|
|
|
|
|
|
|
| |
Yet more debugging code to track down 417/404, inspired by a fun core from arma.
svn:r10216
|
|
|
|
|
|
|
| |
Make caches-extra-info lines parseable.
svn:r10215
|
|
|
|
| |
svn:r10214
|
|
|
|
| |
svn:r10213
|
|
|
|
|
|
|
| |
Fix build on gcc 4.2
svn:r10212
|
|
|
|
|
|
|
| |
Note that we do not permit you to exit to port 0, no matter what. Closes bug 409.
svn:r10211
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Add a "swap" function to smartlist, add a "shuffle" function for smartlist to crypto.c, and make appropriate hashtable functions be more const.
svn:r10208
|