summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2005-09-22Use a separate type for "local view of router status". Also, even though I ↵Nick Mathewson
told arma there was no need, replace an ugly O ( n lg n ) algorithm with a nice O ( n ) algorithm when stepping through servers. Some ugliness is just too bad to stand. svn:r5109
2005-09-22content-type bugfixes:Roger Dingledine
http://seppia.noreply.org/tor/dir.z was being declared text/plain and http://seppia.noreply.org/tor/server/fp/719BE45DE224B607C53707D0E2143E2D423E74CF was being declared application/octet-stream svn:r5108
2005-09-21bugfix: nobody ever implemented EVENT_ADDRMAP for control protocolRoger Dingledine
version 0, so don't let version 0 controllers ask for it. svn:r5107
2005-09-21Make write_escaped_data more bulletproof; backport candidate.Nick Mathewson
svn:r5106
2005-09-21clean up misleading comment on authdir_wants_to_reject_router()Roger Dingledine
svn:r5105
2005-09-21Only check versions from versioning authdirs.Nick Mathewson
svn:r5101
2005-09-21Implement new version handling code.Nick Mathewson
svn:r5100
2005-09-20clean up a bit more codeRoger Dingledine
svn:r5098
2005-09-20make router_is_general_exit match its documentationRoger Dingledine
but it's still wrong maybe svn:r5095
2005-09-19bump version to 0.1.1.7-alpha-cvsNick Mathewson
svn:r5093
2005-09-18remove some debugging garbageNick Mathewson
svn:r5092
2005-09-18Make give-up-on-failure actually work: it seems the servers gave me a real ↵Nick Mathewson
test case. svn:r5091
2005-09-18Prevent a "try forever to download an unobtainable descriptor" bug. Still ↵Nick Mathewson
remaining: the "give up forever" bug. svn:r5090
2005-09-18Refactor new directory code a bit. Keep a big list of rolled-up router ↵Nick Mathewson
status info, including # of download failures (not yet used). Update this list from networkstatuses when they arrive, then update routers from this list. Only download 128 routers at a time, to avoid gargantuan URLs. svn:r5089
2005-09-18Move to new base64 digest functions. Switch to new router digest ↵Nick Mathewson
calculation. Make sure there are no duplicates in router status lists. svn:r5088
2005-09-18Helper functions to perform our truncated base64 encoding on hexdigests.Nick Mathewson
svn:r5087
2005-09-18Make smartlist_add_all more efficient.Nick Mathewson
svn:r5086
2005-09-16Remove a bunch of #if0d code that I no longer need to look at.Nick Mathewson
svn:r5083
2005-09-16Resolve/expand some XXXXs and improve a log message or twoNick Mathewson
svn:r5082
2005-09-16simplifyRoger Dingledine
svn:r5081
2005-09-16Fix the never-marked-anything-as-running bug. Now Tor builds circuts again. Woo.Nick Mathewson
svn:r5080
2005-09-16Add a missing returnNick Mathewson
svn:r5079
2005-09-16Fix the confusing bug where we were downloading only the first n/2-1 of the ↵Nick Mathewson
servers we actually wanted. svn:r5078
2005-09-16Unify our "figure out which fingerprints we were downloading" code.Nick Mathewson
svn:r5077
2005-09-15Add some (notice, for now) log messages that imply confusing things are ↵Nick Mathewson
happening. svn:r5076
2005-09-15fix braino in dirserv.Nick Mathewson
svn:r5075
2005-09-15Make authdirs smarter. Reject/invalidate by key and IP. Remember that not ↵Nick Mathewson
every authdir has to be a naming authdir. svn:r5074
2005-09-15And some documentation before bed.Nick Mathewson
svn:r5073
2005-09-15make some functions static; clean dead networkstatus entries more often.Nick Mathewson
svn:r5072
2005-09-15Make unittests not dieNick Mathewson
svn:r5071
2005-09-15Stop downloading directories and download routers instead. This still needs ↵Nick Mathewson
some work, but at last clients are finally on the new architecture. Next comes the tuning and bugfixing. svn:r5070
2005-09-15separate validation from naming in authoritative directory servers; simplify ↵Nick Mathewson
some router-management code. svn:r5069
2005-09-14Fix a bunch of log messages. Deprecate some routerlist fields; remove ↵Nick Mathewson
others, and status_set_at from routerinfo_t. Compress routerlist.c cleanup functions. Update cached networkstatus mtime when we download the same one twice. Change some interfaces. svn:r5068
2005-09-14Add a touch_file() function to compat so we can update cache mtimes.Nick Mathewson
svn:r5067
2005-09-14Oops. directory_set_dirty() needs to mark networkstatus as dirty too.Nick Mathewson
svn:r5066
2005-09-14Would you believe that the software_versions field of routerlist_t was never ↵Nick Mathewson
actually used for anything? svn:r5064
2005-09-14Big commit: clients start downloading and using network-statuses.Nick Mathewson
Only caches need to get running-routers; nobody needs to parse, store, or use it. Same for the router-status line in the directories. Add many #if 0's that can get removed once I'm convinced they don't contain anything I'm forgetting. Start all newly-parsed routers as non-running and non-valid; update them from the list of network statuses. Update all routers when a new networkstatus comes in. After 3 tries for a networkstatus, clients give up until they're told to try again. "Let's get those missles ready to **DESTROY THE UNIVERSE**!" -TMBG svn:r5063
2005-09-14Clean up a few warnings that make gcc twig out a bit.Nick Mathewson
svn:r5062
2005-09-14Declare 0.1.1.7 as The Version With The Good Dirservers.Nick Mathewson
svn:r5061
2005-09-14bump to 0.1.1.7-alphaRoger Dingledine
svn:r5051
2005-09-14bugfix: when we try to determine the reachability of our dirport,Roger Dingledine
and it doesn't work, don't freak out and mark ourselves as down and try somewhere else. just calmly fail. svn:r5050
2005-09-14Add new config.c function to set options that can fail, and roll back if ↵Nick Mathewson
they do. This should solve the setconf-an-impossible-port bug. svn:r5046
2005-09-14stop the call duplication inside config_assign()Roger Dingledine
svn:r5045
2005-09-14note that routerstatus_t.entries is sorted.Nick Mathewson
svn:r5044
2005-09-14simplifyRoger Dingledine
svn:r5043
2005-09-14and take the bang outRoger Dingledine
svn:r5042
2005-09-14ok, ok, csv's get replaced even when we assign them from the torrc.Roger Dingledine
svn:r5041
2005-09-14checkpoint: clean up and document the three ways to call config_assign()Roger Dingledine
and reduce code duplication in config_free() and option_is_same(). svn:r5040
2005-09-13correct "your server is reachable" log entries to indicate that it wasRoger Dingledine
self-testing that told us so. svn:r5034
2005-09-13a bit more code cleanupRoger Dingledine
svn:r5033