aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
Commit message (Collapse)AuthorAge
* r6909@Kushana: nickm | 2006-07-26 13:05:58 -0400Nick Mathewson2006-07-26
| | | | | | | Clean up wide lines from last patch. svn:r6907
* r6908@Kushana: nickm | 2006-07-26 12:38:52 -0400Nick Mathewson2006-07-26
| | | | | | | Refactor connection_t into edge, or, dir, control, and base subtypes. This might save some RAM on busy exit servers, but really matters most in terms of correctness. svn:r6906
* rewrite conn->address for GET commands as well as POST commands.Roger Dingledine2006-07-23
| | | | svn:r6815
* huge bugfix: we weren't ever writing an http header when sendingRoger Dingledine2006-07-17
| | | | | | | | out network statuses! so clients were downloading the whole thing, and then discarding them because they're malformed. svn:r6778
* Allow servers with no hostname or IP address to learn their IP addressRoger Dingledine2006-07-17
| | | | | | | | | | | | | by asking the directory authorities. This code only kicks in when you would normally have exited with a "no address" error. This design is flawed, though, since the X-Your-Address-Is header is not authenticated, and doing it this way introduces too many new attacks. The right answer is to give IP address hints inside the HELLO cell; much of this code can be reused when we switch. svn:r6774
* stick to nick's nul/null conventionRoger Dingledine2006-07-15
| | | | svn:r6763
* rename X-You-Are to something slightly better.Roger Dingledine2006-07-06
| | | | svn:r6735
* whitespace/tab fixesRoger Dingledine2006-07-06
| | | | svn:r6734
* Make the X-You-Are header more accurate when there's a proxy in the middle.Roger Dingledine2006-07-04
| | | | svn:r6722
* Oops. Headers work better when named right.Nick Mathewson2006-07-01
| | | | svn:r6707
* Unify HTTP response code into one place so it is easier to add headers. Add ↵Nick Mathewson2006-06-30
| | | | | | an X-You-Are header, which we should probably rename. NOTE that we should not use this field for things where it matters if dirs lie. svn:r6705
* complete_only == !allow_partial. This enables useful use of partial desc ↵Nick Mathewson2006-06-29
| | | | | | downloads. Backport candidate svn:r6700
* Fix a bunch of spaces.Nick Mathewson2006-06-22
| | | | svn:r6678
* Next batch of memory miserdom: mmap cached-routers file. This is sure to ↵Nick Mathewson2006-06-22
| | | | | | break somewhere. svn:r6675
* When requesting or serving resources via fingerprint/digest, request and ↵Nick Mathewson2006-06-21
| | | | | | respond in-order, removing duplicates. svn:r6673
* Start spooling v2 networkstatus docs as well.Nick Mathewson2006-06-20
| | | | svn:r6664
* 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