| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
| |
Keep circuitless TLS connections open for 1.5 x MaxCircuitDirtiness: this ensures that we don't thrash closing and repoening connections to our guards.
svn:r12218
|
|
|
|
|
|
|
|
| |
ports are reachable" if we haven't been able to build any circuits
yet. Bug found by spending four hours without a v3 consensus.
svn:r12133
|
|
|
|
|
|
|
| |
When we have plenty of directory information, don't try to launch descriptor downloads quite so eagerly.
svn:r12033
|
|
|
|
|
|
|
| |
Stop incessant notices about when we think the expected valid-after time should be, if we are not an authority.
svn:r12022
|
|
|
|
|
|
|
| |
When a networkstatus consensus download fails, do not wait 60 seconds to decide whether to retry. (Also, log the time at which we'll try to replace the current networkstatus.)
svn:r12005
|
|
|
|
|
|
|
| |
Remove nearly all calls to routerlist_remove_old(). Backport candidate.
svn:r11994
|
|
|
|
|
|
|
| |
Implement v3 networkstatus client code. Remove v2 networkstatus client code, except as needed for caches to fetch and serve v2 networkstatues and the routers they list.
svn:r11957
|
|
|
|
|
|
|
|
|
| |
when we find our DirPort to be reachable but won't actually publish
it. Extra descriptors without any real changes are dropped by the
authorities, and can screw up our "publish every 18 hours" schedule.
svn:r11915
|
|
|
|
|
|
|
| |
Remove code to generate v1 directories.
svn:r11866
|
|
|
|
|
|
|
| |
Turn all "Is DirPort nonzero? Because if it is, we must be a directory" logic into calls to dirserver_mode().
svn:r11817
|
|
|
|
|
|
|
| |
Refactor out about a third of routerlist.c into a new networkstatus.c. I\m not sure that I got everything that needed to move, but so far so good.
svn:r11791
|
|
|
|
|
|
|
| |
Add a bunch of function documentation; clean up a little code; fix some XXXXs; tag the nonsensical EXTRAINFO_PURPOSE_GENERAL as nonsesnse; note another bit of "do not cache special routers" code to nuke.
svn:r11761
|
|
|
|
|
|
|
| |
Check V3 authority certificates for expiry, and warn the authority op as they get old.
svn:r11427
|
|
|
|
| |
svn:r11395
|
|
|
|
|
|
|
| |
Move NT services code into its own C file. Probably will not build happily on win32 yet; more hacking needed.
svn:r11388
|
|
|
|
|
|
|
| |
Clean up MTBF storage code. Do not count times that we have been down toward the current run. Handle backward timewarps correctly. Store MTBF data on exit in addition to periodically.
svn:r11225
|
|
|
|
|
|
|
| |
Trigger load and save of MTBF data.
svn:r11219
|
|
|
|
| |
svn:r11148
|
|
|
|
|
|
|
| |
Initial work on proposal 108: have rephist.c track the information we want to be tracking for OR stability.
svn:r11147
|
|
|
|
|
|
|
| |
Cache v3 networkstatus consensuses on disk.
svn:r11086
|
|
|
|
|
|
|
| |
Glibc (and maybe others) define a mallinfo() that can be used to see how the platform malloc is acting inside. When we have it, dump its output on dumpmemusage().
svn:r10996
|
|
|
|
|
|
|
| |
Try to call time(NULL) a little less.
svn:r10980
|
|
|
|
|
|
|
| |
More directory voting code. Now, if everything works, and I haven't forgotten anything, it is possible to set up some v3 authorities and start voting. Of course, I have probably forgotten something, and there are probably bugs in there somewhere too.
svn:r10976
|
|
|
|
| |
svn:r10961
|
|
|
|
|
|
|
| |
When dumping memory usage, list bytes used in buffer memory free-lists.
svn:r10947
|
|
|
|
|
|
|
| |
Maintain a detached-signatures document along with pending consensus document. Add a dirvote_free_all() to clean up static vars in dirvote.c
svn:r10945
|
|
|
|
|
|
|
| |
Make all code to generate v1 directories into conditional code.
svn:r10926
|
|
|
|
|
|
|
| |
Once more with feeling.
svn:r10907
|
|
|
|
|
|
|
| |
esc_router_info static field should not be cleared postfork, to avoid races.
svn:r10906
|
|
|
|
|
|
|
| |
Fix/note some relatively trivial mem usage issues
svn:r10905
|
|
|
|
| |
svn:r10903
|
|
|
|
| |
svn:r10902
|
|
|
|
| |
svn:r10898
|
|
|
|
| |
svn:r10867
|
|
|
|
| |
svn:r10851
|
|
|
|
| |
svn:r10837
|
|
|
|
|
|
|
| |
Get the RESOLVE controller code working.
svn:r10781
|
|
|
|
|
|
|
| |
Call tor_init_threads() from tor_init().
svn:r10751
|
|
|
|
|
|
|
| |
Sun CC likes to give warnings for the do { } while(0) construction for making statement-like macros. Define STMT_BEGIN/STMT_END macros that do the right thing, and use them everywhere.
svn:r10645
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Only listen to responses for "authority" fetches if we're configured
to use Bridges. Otherwise it's safe (and maybe smarter) to silently
discard them like we used to.
- React faster to download networkstatuses after the first bridge
descriptor arrives.
- Don't do dir fetches before we have any bridges, even when our
dirport is open.
svn:r10604
|
|
|
|
|
|
|
| |
Oops; linked connections get read/write events too.
svn:r10596
|
|
|
|
|
|
|
| |
Add dnsport connection to the global connection list. (Bug found by mwenge.)
svn:r10592
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- demand options->Bridges and options->TunnelDirConns if
options->UseBridges is set.
- after directory fetches, accept descriptors that aren't referenced by
our networkstatuses, *if* they're for a configured bridge.
- delay directory fetching until we have at least one bridge descriptor.
- learn how to build a one-hop circuit when we have neither routerinfo
nor routerstatus for our destination.
- teach directory connections how to pick a bridge as the destination
directory when doing non-anonymous fetches.
- tolerate directory commands for which the dir_port is 0.
- remember descriptors when the requested_resource was "authority",
rather than just ignoring them.
- put bridges on our entry_guards list once we have a descriptor for them.
When UseBridges is set, only pick entry guards that are bridges. Else
vice versa.
svn:r10571
|
|
|
|
|
|
|
|
| |
Bridge authorities no longer write bridge descriptors to their
cached-routers file -- this gets complex because of extrainfo documents.
svn:r10545
|
|
|
|
|
|
|
| |
Remove some deadcode that seems unlikely to return
svn:r10509
|
|
|
|
|
|
| |
always was 0.
svn:r10486
|
|
|
|
|
|
|
| |
Move connection_should_read_from_linked_conn into main.c, which is the only file that uses it.
svn:r10394
|
|
|
|
|
|
|
| |
Resolve all but 3 DOCDOCs.
svn:r10393
|
|
|
|
|
|
|
| |
Review XXXX comments without a version; upgrade some to XXXX020.
svn:r10315
|
|
|
|
|
|
|
| |
Make connection_array into a smartlist.
svn:r10292
|