aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
Commit message (Collapse)AuthorAge
* write_to_buf != connection_write_to_buf. Also, add a ↵Nick Mathewson2006-06-18
| | | | | | connection_write_to_buf_zlib wrapper that sucks. svn:r6650
* And actually check the url when it exists. that might work better.Nick Mathewson2006-06-18
| | | | svn:r6646
* That dir_refresh_src fix will only work if I enable it.Nick Mathewson2006-06-18
| | | | svn:r6645
* Fix a couple of bugs in last patch.Nick Mathewson2006-06-18
| | | | svn:r6644
* Instead of adding servers and v1 directories to buffers en masse, directory ↵Nick Mathewson2006-06-18
| | | | | | servers add them on the fly as their outbufs are depleted. This will save ram on busy dirservers. svn:r6641
* And a minor bugfix to the weaselhackPeter Palfrader2006-06-15
| | | | svn:r6629
* fix spacingRoger Dingledine2006-06-15
| | | | svn:r6628
* Add a /tor/dir-all-weaselhack directory resource so I do not have to update ↵Peter Palfrader2006-06-15
| | | | | | my scripts svn:r6627
* Add a new warning to our "warn a lot" list: unused parameters. This means ↵Nick Mathewson2006-06-04
| | | | | | we have to explicitly "use" unuseds, but it can catch bugs. (It caught two coding mistakes so far.) svn:r6532
* forward-port: "Resolve" all XXX011 items, mostly by marking them non-011.Nick Mathewson2006-04-18
| | | | svn:r6396
* Change a dumb interface. Also, increment ↵Nick Mathewson2006-04-10
| | | | | | trusted_dir_server_t.n_networkstatus_failures when an all.z download fails entirely or partially. svn:r6345
* fix typoRoger Dingledine2006-04-09
| | | | svn:r6340
* When fetching rendezvous descriptors, we were willing to askRoger Dingledine2006-04-09
| | | | | | | v2 authorities too. And of course they did not have a copy. svn:r6331
* 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