aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
Commit message (Collapse)AuthorAge
* minor touchupsRoger Dingledine2007-12-03
| | | | svn:r12657
* Reject uploaded descriptors and extrainfo documents if they'reRoger Dingledine2007-12-02
| | | | | | | | huge. Otherwise we'll cache them all over the network and it'll clog everything up. svn:r12633
* minor cleanupsRoger Dingledine2007-12-02
| | | | svn:r12631
* clean up the dirserv_add_multiple_descriptors() apiRoger Dingledine2007-12-02
| | | | svn:r12630
* start to refactor dirserver_mode()Roger Dingledine2007-12-01
| | | | svn:r12621
* karsten's second refactoring patchRoger Dingledine2007-11-29
| | | | svn:r12607
* get rid of the __ConsiderAllRoutersAsHidServDirectories config optionRoger Dingledine2007-11-17
| | | | svn:r12528
* get rid of the separate reachability window for the hsdir flag.Roger Dingledine2007-11-17
| | | | svn:r12527
* The fix in 0.2.0.12-alpha cleared the "hsdir" flag in v3 networkRoger Dingledine2007-11-17
| | | | | | | | consensus documents when there are too many relays at a single IP address. Now clear it in v2 network status documents too. svn:r12522
* back out r12509 and fix a better bug instead:Roger Dingledine2007-11-17
| | | | | | | | | | | | When authorities detected more than two relays running on the same IP address, they were clearing all the status flags but forgetting to clear the "hsdir" flag. So clients were being told that a given relay was the right choice for a v2 hsdir lookup, yet they never had its descriptor because it was marked as 'not running' in the consensus. svn:r12515
* r16582@catbus: nickm | 2007-11-08 13:14:16 -0500Nick Mathewson2007-11-08
| | | | | | | Try to bulletproof the parse logic for router-stability. svn:r12441
* r16573@catbus: nickm | 2007-11-08 11:57:16 -0500Nick Mathewson2007-11-08
| | | | | | | Mess with the formula for the Guard flag again. Now it requires that you be in the most familiar 7/8 of nodes, and have above median wfu for that 7/8th. See spec for details. Also, log thresholds better. svn:r12440
* r16262@catbus: nickm | 2007-10-29 13:21:35 -0400Nick Mathewson2007-10-29
| | | | | | | Patch from Karsten: Code to act as (and use) v2 hidden service directories. svn:r12272
* Downgrade the mismatched fpr warning to infoPeter Palfrader2007-10-28
| | | | svn:r12257
* r16238@catbus: nickm | 2007-10-28 15:46:10 -0400Nick Mathewson2007-10-28
| | | | | | | Whitespace fix. svn:r12256
* r16195@catbus: nickm | 2007-10-26 18:48:52 -0400Nick Mathewson2007-10-26
| | | | | | | base "Guard" flag on WFU rather than MTBF. Note an issue in the TODO. Roger: thoughts? svn:r12219
* r16154@catbus: nickm | 2007-10-25 10:29:47 -0400Nick Mathewson2007-10-25
| | | | | | | Fix more memory leaks, with help from dmalloc. svn:r12188
* Authorities no longer send back "400 you're unreachable please fixRoger Dingledine2007-10-24
| | | | | | | | it" errors to Tor servers that aren't online all the time. We're supposed to tolerate these servers now. svn:r12136
* When there's no concensus, we were forming a vote every 30Roger Dingledine2007-10-23
| | | | | | | | | | | | | | | | | | | | | | | | minutes, but writing the "valid-after" line in our vote based on our configured V3AuthVotingInterval: so unless the intervals matched up, we immediately rejected our own vote because it didn't start at the voting interval that caused us to construct a vote. This caused log entries like: Oct 23 01:16:16.303 [notice] Choosing expected valid-after time as 2007-10-23 05:30:00: consensus_set=0, interval=1800 ... Oct 23 01:20:01.203 [notice] Choosing valid-after time in vote as 2007-10-23 06:00:00: consensus_set=0, interval=3600 Oct 23 01:20:01.290 [warn] Rejecting vote with valid-after time of 2007-10-23 06:00:00; we were expecting 2007-10-23 05:30:00 Oct 23 01:20:01.291 [warn] Couldn't store my own vote! (I told myself, 'Bad valid-after time'.) Nick, you should look at this, as it's your design. :) svn:r12129
* r16042@catbus: nickm | 2007-10-22 13:30:49 -0400Nick Mathewson2007-10-22
| | | | | | | Move functions into and out of dirvote.c so that it contains all the v3 authority functionality, and no non-authority functionality. svn:r12107
* r15991@catbus: nickm | 2007-10-20 20:08:29 -0400Nick Mathewson2007-10-21
| | | | | | | Fix a nasty bug in DownloadExtraInfo implementation where we would discard, download, discard, download ad infinitum. svn:r12069
* r15966@catbus: nickm | 2007-10-19 13:56:28 -0400Nick Mathewson2007-10-19
| | | | | | | Voting side of proposal 122 svn:r12052
* r15957@catbus: nickm | 2007-10-19 12:22:18 -0400Nick Mathewson2007-10-19
| | | | | | | Report our IP address in our vote if it turns out that our hostname isn't a fqdn. svn:r12047
* r15877@catbus: nickm | 2007-10-17 12:54:56 -0400Nick Mathewson2007-10-17
| | | | | | | Make unverified-consensus get removed when it is accepted or rejected. Make a new get_datadir_fname*() set of functions to eliminate the common code of "get the options, get the datadir, append some stuff". svn:r12000
* r15806@catbus: nickm | 2007-10-15 19:14:57 -0400Nick Mathewson2007-10-15
| | | | | | | Implement v3 networkstatus client code. Remove v2 networkstatus client code, except as needed for caches to fetch and serve v2 networkstatues and the routers they list. svn:r11957
* Make last commit compileNick Mathewson2007-10-15
| | | | svn:r11953
* Add some debugging logs related to dir vote timing.Nick Mathewson2007-10-15
| | | | svn:r11952
* r15731@catbus: nickm | 2007-10-12 17:27:48 -0400Nick Mathewson2007-10-12
| | | | | | | Move "sort a list of routerinfo_t" into its own function in routerlist.c svn:r11903
* r14887@Kushana: nickm | 2007-10-11 11:19:39 -0400Nick Mathewson2007-10-11
| | | | | | | Fix some XXX020s in dirserv.c svn:r11870
* r15679@catbus: nickm | 2007-10-11 09:51:33 -0400Nick Mathewson2007-10-11
| | | | | | | Remove code to generate v1 directories. svn:r11866
* r15670@catbus: nickm | 2007-10-10 20:08:14 -0400Nick Mathewson2007-10-11
| | | | | | | Restore a removed assert. svn:r11861
* let bridge authorities write bridge descriptors to theirRoger Dingledine2007-10-10
| | | | | | | | | cached-descriptors* files. nick, did i get this right? svn:r11855
* get r11842 closer to what i wantRoger Dingledine2007-10-10
| | | | svn:r11851
* Tweak the implementation of proposal 109 slightly: allow at mostRoger Dingledine2007-10-10
| | | | | | | | two Tor servers on the same IP address, except if it's the location of a directory authority, in which case allow five. svn:r11842
* r15599@catbus: nickm | 2007-10-09 16:44:36 -0400Nick Mathewson2007-10-09
| | | | | | | Fix the bug that was making moria1 set valid-after wrong in its votes: we were looking at the preferred timing when we should have been looking at the consensus timing. svn:r11818
* r15530@catbus: nickm | 2007-10-04 12:16:27 -0400Nick Mathewson2007-10-04
| | | | | | | Add a bunch of function documentation; clean up a little code; fix some XXXXs; tag the nonsensical EXTRAINFO_PURPOSE_GENERAL as nonsesnse; note another bit of "do not cache special routers" code to nuke. svn:r11761
* r15422@catbus: nickm | 2007-09-27 16:42:35 -0400Nick Mathewson2007-09-27
| | | | | | | Use descriptor annotations to record the source, download t time, and purpose of every descriptor we add to the store. The remaining to-do item is to stop setting do_not_cache on bridges. svn:r11680
* r15412@catbus: nickm | 2007-09-27 12:04:24 -0400Nick Mathewson2007-09-27
| | | | | | | More annotated-store work: handle annotations in lists correctly. Add ability to prepend annotations to a routerdesc (and to every rtouredesc in a list), while verifying that the routerdesc is not already annotated. svn:r11665
* r15400@catbus: nickm | 2007-09-26 12:13:12 -0400Nick Mathewson2007-09-26
| | | | | | | Backend for descriptor annotations: parse annotations as keywords; only allow them to appear in the cache; do not serve them as part of the descriptor if we are a dirserver. Still need mechanism to set annotations. Still need to rename cache file. svn:r11654
* r15279@catbus: nickm | 2007-09-22 02:00:06 -0400Nick Mathewson2007-09-22
| | | | | | | V3 authority work: fetch missing votes and/or signatures as needed. svn:r11575
* bugfix on r11110:Roger Dingledine2007-09-20
| | | | | | | | | | | Fix a bug that made servers send a "404 Not found" in response to attempts to fetch their server descriptor. This caused Tor servers to take many minutes to establish reachability for their DirPort, and it totally crippled bridges. Bugfix on 0.2.0.5-alpha. svn:r11545
* it works better when it compilesRoger Dingledine2007-09-20
| | | | svn:r11531
* Resume listing "AUTHORITY" flag for authorities in network status.Roger Dingledine2007-09-20
| | | | | | | Bugfix on 0.2.0.3-alpha; reported by Alex de Joode. svn:r11530
* trivial doxygen thingRoger Dingledine2007-09-17
| | | | svn:r11463
* r14448@Kushana: nickm | 2007-09-17 14:26:56 -0400Nick Mathewson2007-09-17
| | | | | | | Unify all of the divergent median/nth-percentile code in container.[ch] svn:r11457
* r14185@Kushana: nickm | 2007-08-22 11:07:01 -0400Nick Mathewson2007-08-22
| | | | | | | Add some voting-related documentation. svn:r11255
* r14758@catbus: nickm | 2007-08-21 01:36:03 -0400Nick Mathewson2007-08-21
| | | | | | | Finish implementing and documenting proposal 108: Authorities now use MTBF data to set their stability flags, once they have at least 4 days of data to use. svn:r11240
* help nick work on proposal 108Roger Dingledine2007-08-17
| | | | svn:r11148
* r14032@Kushana: nickm | 2007-08-15 11:35:16 -0400Nick Mathewson2007-08-15
| | | | | | | Add unit tests for median functions; enforce sensible ranges for intervals and delays. svn:r11121
* r14020@Kushana: nickm | 2007-08-14 16:07:37 -0400Nick Mathewson2007-08-14
| | | | | | | return 404 properly when somebody requests a bunch of nonexistent statuses/servers svn:r11110