summaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
AgeCommit message (Collapse)Author
2004-12-07plug another memory leakRoger Dingledine
svn:r3104
2004-12-05New circuit building strategy: keep a list of ports that we've used in ↵Roger Dingledine
the past 6 hours, and always try to have 2 circuits open or on the way that will handle each such port. (We can extend this to include addresses if exit policies shift to require that.) Seed us with port 80 so web browsers won't complain that Tor is "slow to start up". This was necessary because our old circuit building strategy just involved counting circuits, and as time went by we would build up a big pile of circuits that had peculiar exit policies (e.g. only exit to 9001-9100) which would take up space in the circuit pile but never get used. Fix router_compare_addr_to_addr_policy: it was not treating a port of * as always matching, so we were picking reject *:* nodes as exit nodes too. If you haven't used a clean circuit in an hour, throw it away, just to be on the safe side. This means after 6 hours a totally unused Tor client will have no circuits open. svn:r3078
2004-12-04plus add a comment re: the previous bugRoger Dingledine
svn:r3076
2004-12-04bugfix: router_exit_policy_rejects_all() was broken, so we wereRoger Dingledine
sometimes picking middleman nodes as our last hop, which wasn't very useful. svn:r3075
2004-12-04Add function to check that addr_policy_t is okay; change struct ↵Nick Mathewson
addr_policy_t to addr_policy_t. svn:r3070
2004-12-01Spell-check strings and commentsNick Mathewson
svn:r3052
2004-11-29Suggestion from weasel: Make tor --version --version dump the cvs Id of ↵Nick Mathewson
every file. svn:r3019
2004-11-29Fetch cached running-routers from servers that serve it (that is, ↵Nick Mathewson
authdirservers, and servers running 0.0.9rc5-cvs or later.) svn:r3018
2004-11-28wrong is ok, and right is fine, but in between is apparentlyRoger Dingledine
totally unacceptable to me. svn:r3005
2004-11-28Normalize space: add one between every control keyword and control clause.Nick Mathewson
svn:r3003
2004-11-26remove emacs droppings, since nick says he doesn't need them anymoreRoger Dingledine
svn:r2989
2004-11-25Clarify a bunch of log messagesNick Mathewson
svn:r2983
2004-11-20if your requested exit node has bandwidth 0, pick it anywayRoger Dingledine
svn:r2920
2004-11-15move second stat to a cleaner placeRoger Dingledine
svn:r2890
2004-11-14ok ok the stat wasn't redundantRoger Dingledine
but the warn was svn:r2852
2004-11-14Remove redundant stat() for reading cached directory, and removeRoger Dingledine
confusing warn when the cached directory isn't there yet. svn:r2847
2004-11-12Rename exit_policy to addr_policy, since it gets used for SOCKS and ↵Nick Mathewson
directory connections too. Make all policies get validated in options_validate, and make SOCKS/directory policies get set in options_act. svn:r2819
2004-11-09Normalize whitespace; add a "tell me about all the unnormalized whitespace" ↵Nick Mathewson
target; fix a braino in dirserv.c svn:r2758
2004-11-09Fix windows build for VC6; centralize newline-fiasco-damage-control logicNick Mathewson
svn:r2756
2004-11-09Add some documentation to routerlistNick Mathewson
svn:r2753
2004-11-09resolve a 64-bit warningRoger Dingledine
svn:r2750
2004-11-09Stop using the wrong DataDirectory when we're validating.Roger Dingledine
Also validate/normalize the DataDirectory better. svn:r2732
2004-11-07Clean up copyrights.Roger Dingledine
Break connection_consider_empty_buckets() out of connection_read_bucket_decrement(). svn:r2698
2004-11-06Make options no longer a global variable.Roger Dingledine
Now we can try setting an option but back out if it fails to parse, or if it's disallowed (e.g. changing RunAsDaemon from 1 to 0). Use parse_line_from_str rather than parse_line_from_file. svn:r2692
2004-11-04make the default default options.FirewallPorts be the defaultRoger Dingledine
svn:r2683
2004-11-04break out validate_optionsRoger Dingledine
leave options.FirewallPorts NULL if it's NULL svn:r2673
2004-11-03- Implement all of control interface except authentication, setconfig,Nick Mathewson
and actually making the sockets. - Make sure that identity-based nicknames start with $. - Use new string_join interface. svn:r2661
2004-11-03lay the groundwork for a default value for each config option.Roger Dingledine
tolerate null exitnodes, entrynodes, etc config options. svn:r2655
2004-11-02Use a stricter set of warnings; make them all pass.Nick Mathewson
svn:r2645
2004-10-28Tweaks to prevent obsolete restarting tors from hammering the dirservers. ↵Nick Mathewson
(1) Cache a received directory as soon as the signature checks out. (2) Treat a cached directory as "recent" based on its mtime. (3) If we have a recent directory, we dont need to fetch a newer one for DirFetchPostPeriod. This needs review! svn:r2618
2004-10-27Tricksy compiler warnings! We hates them, hates them forever, my precious!Nick Mathewson
svn:r2615
2004-10-27Use strlcpy, not strcpy.Nick Mathewson
svn:r2610
2004-10-27Use tor_snprintf, not snprintfNick Mathewson
svn:r2609
2004-10-27Replace sprintf with snprintfNick Mathewson
svn:r2602
2004-10-27Add and document router-status line using new unified liveness/verifiedness ↵Nick Mathewson
format; continue to generate running-routers; continue to parse running-routers when no router-status line is found svn:r2592
2004-10-19Remove routerinfo_t->is_trusted_dir, and all the twisted machinery used toNick Mathewson
maintain it. Have clients default to the nickname "client" in their certificates. Give a less frightening warning on obsolete (pre-0.0.8) routerinfo_t's. svn:r2568
2004-10-17start the process of making 0.0.7* obsoleteRoger Dingledine
svn:r2565
2004-10-16Fix memory leakNick Mathewson
svn:r2535
2004-10-15Implement user-declared node families.Nick Mathewson
svn:r2534
2004-10-15Upload to trusted dir servers based on DirServer config options, not on ↵Nick Mathewson
routerinfos. svn:r2529
2004-10-15Ignore fascistfirewall when dealing with service descriptors; obey ↵Nick Mathewson
fascistfirewall when posting server descriptors; ignore fascistfirewall on directory connections when httpproxy is set. svn:r2527
2004-10-15Fix search-and-replace in comments: Friends->family does not imply ↵Nick Mathewson
friendship->familyhip. svn:r2525
2004-10-15Implement "families" of coadministered nodes; prevent them all from ↵Nick Mathewson
appearing on the same circuit. svn:r2523
2004-10-14Try to always dtrt if routerlist==NULLNick Mathewson
svn:r2489
2004-10-14rename addr to address to we avoid this bug laterRoger Dingledine
svn:r2488
2004-10-14more int to size_t conversions, fixing one or more amd64 bugsRoger Dingledine
plus a whitespace patch on config.c from vicman svn:r2482
2004-10-14Add missing line; add similar checkNick Mathewson
svn:r2481
2004-10-14Remove need for dirservers file: now, we note trusted dirservers in ↵Nick Mathewson
configuration options, and only need to remember addr:port and key digest for each one. svn:r2479
2004-10-13Add default trusted-dir-server entries only when no dirserver lines are ↵Nick Mathewson
given in the config file svn:r2467
2004-10-13Make directories get generated properly again; debug key lookup. Also, it ↵Nick Mathewson
is hard to find entries in a table when you never put them there. svn:r2462