aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
Commit message (Collapse)AuthorAge
* Fix dirserv_get_networkstatus_v2's api: its function commentsRoger Dingledine2006-04-01
| | | | | | | | | | did not at all match its behavior, and I can't think of a case when it should return anything other than 0. This fix may allow getinfo dir/status/foo to work. svn:r6285
* On our dirport return a robots.txt so maybe google doesn't index all those ↵Peter Palfrader2006-03-27
| | | | | | server descriptors anymore svn:r6252
* Refactor and consolidate addr/exit policies into a new policies.c.Roger Dingledine2006-03-27
| | | | | | | Fix some minor bugs and memory leaks along the way. svn:r6246
* Note a vulnerability with our current recommended-version concensusRoger Dingledine2006-03-22
| | | | | | | | | | | | | | | | | | building. Make the warnings about invalid and unnamed nodes scale better, and update the text of the warnings. Change router_have_minimum_dir_info() to only be happy when it has enough network-statuses ("more than half") to be willing to actually build circuits. Not yet done: when we fail to get a networkstatus that we wanted, and !router_have_minimum_dir_info(), we should retry it quicker than a whole minute from now. svn:r6227
* auth dir servers were only modifying a server's is_running fieldRoger Dingledine2006-03-18
| | | | | | | | | when they created a network status. so if nobody asked for a network status, they would never discover that any servers are is_running, so they could never build a circuit. svn:r6183
* Cleanup on time-relaqted constants. New conventions:Nick Mathewson2006-03-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) Surround all constants by (parens), whether we'll be using them in a denominator or not. 2) Express all time periods as products (24*60*60), not as multiplied-out constants (86400). 3) Comments like "(60*60) /* one hour */" are as pointless as comments like "c = a + b; /* set c to the sum of a and b */". Remove them. 4) All time periods should be #defined constants, not given inline. 5) All time periods should have doxygen comments. 6) All time periods, unless specified, are in seconds. It's not necessary to say so. To summarize, the old (lack of) style would allow: #define FOO_RETRY_INTERVAL 60*60 /* one hour (seconds) */ next_try = now + 3600; The new style is: /** How often do we reattempt foo? */ #define FOO_RETRY_INTERVAL (60*60) next_try = now + RETRY_INTERVAL; svn:r6142
* when we get funny-looking lines on our dirport, shut up about it.Roger Dingledine2006-03-12
| | | | svn:r6135
* Add some functions to escape values from the network before sending them to ↵Nick Mathewson2006-03-05
| | | | | | the log. Use them everywhere except for routerinfo->plaftorm, routerinfo->contact_info, and rend*.c. (need sleep now) svn:r6087
* be quieter about hidserv descriptors that are too old or too new.Roger Dingledine2006-02-21
| | | | | | | we can't do anything about them anyway. svn:r6073
* New config options to address bug 251:Roger Dingledine2006-02-19
| | | | | | | | | | | | FetchServerDescriptors and FetchHidServDescriptors for whether to fetch server info and hidserv info or let the controller do it, and also PublishServerDescriptor and PublishHidServDescriptors. Add AllDirActionsPrivate undocumented option -- if you set it, you'll need the controller to bootstrap you enough to build your first circuits. svn:r6047
* clean up the Reachable*Addresses changesRoger Dingledine2006-02-19
| | | | svn:r6041
* Split ReachableAddresses into ReachableDirAddresses and ReachableORAddressesPeter Palfrader2006-02-13
| | | | svn:r6009
* the things we do for our windows users.Roger Dingledine2006-02-13
| | | | | | | i hope they appreciate it. svn:r6004
* and don't warn when it happens here either, unless the userRoger Dingledine2006-02-12
| | | | | | | wants to hear it. svn:r5990
* don't tell ordinary users about broken directory servers.Roger Dingledine2006-02-12
| | | | | | | | it's a shame that they're broken, but most people are just confused by the warning. svn:r5988
* stop leaking thatRoger Dingledine2006-02-11
| | | | svn:r5969
* When a client asks for an old-style directory and our write bucketRoger Dingledine2006-02-11
| | | | | | | | is empty, don't give it to him. This way small servers can continue to serve the directory *sometimes*, without getting overloaded. svn:r5968
* Happy new year!Roger Dingledine2006-02-09
| | | | svn:r5949
* Only v1 authorities get hidden service descriptors with current protocolNick Mathewson2006-02-06
| | | | svn:r5924
* clean up tabs and wide-lines from weasel's commitRoger Dingledine2006-02-05
| | | | svn:r5914
* typos and nitsRoger Dingledine2006-02-05
| | | | svn:r5911
* Fix compiler warning on 64 bit archsPeter Palfrader2006-02-03
| | | | svn:r5903
* Try to make tor work better through squid: Limit number of descriptors we fetchPeter Palfrader2006-02-03
| | | | | | | | | | | to 96 (was 128 previously). We limit this number even when we do not have a http proxy explicitly configured as some people mistakenly believe transparent proxies are a neat idea. svn:r5901
* don't warn when we receive a 503 from a dirserver/cache -- thisRoger Dingledine2006-02-03
| | | | | | | | will pave the way for them being able to tell us to screw off if they're busy. svn:r5898
* Jan 18 18:42:05.671 [debug] Encountered eofRoger Dingledine2006-01-19
| | | | | | | | | Jan 18 18:42:05.671 [debug] Got data, not eof. Leaving on inbuf. that's not very smart. svn:r5843
* Indirect access to the signed_descriptor field to make it easier to keep ↵Nick Mathewson2006-01-12
| | | | | | them lazily on disk. svn:r5827
* #undef FOO is cleaner than #define FOO_XXNick Mathewson2006-01-10
| | | | svn:r5774
* Fix bug 221 and bug 201: For 221, check return value from connection_add() ↵Nick Mathewson2006-01-10
| | | | | | when adding a rendezvous post connection. For 201, do not include a content-length 0 with a GET request. svn:r5765
* Instrument directory client bytes as well as server bytes.Nick Mathewson2006-01-09
| | | | svn:r5760
* Make instrmentation code a little cleaner.Nick Mathewson2006-01-08
| | | | svn:r5759
* remove the loud logging of busted rendezvous descriptorsRoger Dingledine2006-01-08
| | | | svn:r5758
* Instrument how many directory bytes we are serving in what kind of request.Nick Mathewson2006-01-08
| | | | svn:r5756
* Dont call directory_get_from_dirserver when you have a particular dirserver ↵Nick Mathewson2006-01-06
| | | | | | in mind; remove fetch-from-authority special-case in directory_get_from_dirserver. svn:r5741
* Directory authorities should go to the proper authority when asking for a ↵Nick Mathewson2006-01-06
| | | | | | networkstatus, even when they want a compressed one. (Also, bullet-proof the logic in case we ever accidentally request a networkstatus for a non-authority.) svn:r5740
* log how big the failed rend descriptor is, and if it's small, logRoger Dingledine2005-12-29
| | | | | | | a base16 of the whole thing. svn:r5678
* when we reject a rend descriptor, tell us where it came from.Roger Dingledine2005-12-29
| | | | svn:r5677
* Implement new directory logic: download by descriptor digest, not by key ↵Nick Mathewson2005-12-27
| | | | | | digest. Caches try to download all listed digests from authorities; clients try to download "best" digests from caches. svn:r5659
* fix a ! that got left outRoger Dingledine2005-12-18
| | | | svn:r5612
* fix typoRoger Dingledine2005-12-15
| | | | svn:r5597
* Do not mark directories as down simply because they dont have the router ↵Nick Mathewson2005-12-15
| | | | | | descs we want. svn:r5595
* Clean fake_status a bit. Switch from has_fetched_directory to ↵Nick Mathewson2005-12-15
| | | | | | have_minimum_dir_info, and make the latter function smarter. svn:r5591
* Choose directory servers from routerstatus list, not from routerinfo list. ↵Nick Mathewson2005-12-14
| | | | | | This way, as soon was we have a networkstatus, we can ask a cache to give us routers, rather than needing to ask the directories. svn:r5586
* Bite the bullet and limit all our source lines to 80 characters, the way IBM ↵Nick Mathewson2005-12-14
| | | | | | intended. svn:r5582
* when we changed from log_fn to debug/info/notice/warn/err,Roger Dingledine2005-12-10
| | | | | | | | | | | | we screwed up the formatting in wild and unpredictable ways. fix it before it becomes convention to format logs in wild and unpredictable ways. still need to do src/common/ someday. svn:r5551
* crank the max line limit down to 150 chars.Roger Dingledine2005-12-10
| | | | svn:r5550
* In my private little universe, terminals are still 80 columns. Impose a ↵Nick Mathewson2005-12-09
| | | | | | 160-character-per-line limit; this will creep down. svn:r5548
* actually listen when we try to route our dir connection via tor.Roger Dingledine2005-11-19
| | | | svn:r5432
* Start obeying our firewall options more rigorously:Roger Dingledine2005-11-19
| | | | | | | | | | | | - If we can't get to a dirserver directly, try going via Tor. - Don't ever try to connect (as a client) to a place our firewall options forbid. - If we specify a proxy and also firewall options, obey the firewall options even when we're using the proxy: some proxies can only proxy to certain destinations. svn:r5431
* If we stop knowing about a dirserver between request and answer, do not die.Nick Mathewson2005-11-08
| | | | svn:r5351
* On directory servers, old_routers was wasting hundreds of bytes per ↵Nick Mathewson2005-11-05
| | | | | | superseded router descriptor. Roll the signed descriptor info and identifying info into a cache_info struct, and use only that for old_routers. svn:r5349