aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
AgeCommit message (Collapse)Author
2007-12-03minor touchupsRoger Dingledine
svn:r12657
2007-12-02Reject uploaded descriptors and extrainfo documents if they'reRoger Dingledine
huge. Otherwise we'll cache them all over the network and it'll clog everything up. svn:r12633
2007-12-02minor cleanupsRoger Dingledine
svn:r12631
2007-12-02clean up the dirserv_add_multiple_descriptors() apiRoger Dingledine
svn:r12630
2007-12-01start to refactor dirserver_mode()Roger Dingledine
svn:r12621
2007-11-29karsten's second refactoring patchRoger Dingledine
svn:r12607
2007-11-17get rid of the __ConsiderAllRoutersAsHidServDirectories config optionRoger Dingledine
svn:r12528
2007-11-17get rid of the separate reachability window for the hsdir flag.Roger Dingledine
svn:r12527
2007-11-17The fix in 0.2.0.12-alpha cleared the "hsdir" flag in v3 networkRoger Dingledine
consensus documents when there are too many relays at a single IP address. Now clear it in v2 network status documents too. svn:r12522
2007-11-17back out r12509 and fix a better bug instead:Roger Dingledine
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
2007-11-08 r16582@catbus: nickm | 2007-11-08 13:14:16 -0500Nick Mathewson
Try to bulletproof the parse logic for router-stability. svn:r12441
2007-11-08 r16573@catbus: nickm | 2007-11-08 11:57:16 -0500Nick Mathewson
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
2007-10-29 r16262@catbus: nickm | 2007-10-29 13:21:35 -0400Nick Mathewson
Patch from Karsten: Code to act as (and use) v2 hidden service directories. svn:r12272
2007-10-28Downgrade the mismatched fpr warning to infoPeter Palfrader
svn:r12257
2007-10-28 r16238@catbus: nickm | 2007-10-28 15:46:10 -0400Nick Mathewson
Whitespace fix. svn:r12256
2007-10-26 r16195@catbus: nickm | 2007-10-26 18:48:52 -0400Nick Mathewson
base "Guard" flag on WFU rather than MTBF. Note an issue in the TODO. Roger: thoughts? svn:r12219
2007-10-25 r16154@catbus: nickm | 2007-10-25 10:29:47 -0400Nick Mathewson
Fix more memory leaks, with help from dmalloc. svn:r12188
2007-10-24Authorities no longer send back "400 you're unreachable please fixRoger Dingledine
it" errors to Tor servers that aren't online all the time. We're supposed to tolerate these servers now. svn:r12136
2007-10-23When there's no concensus, we were forming a vote every 30Roger Dingledine
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
2007-10-22 r16042@catbus: nickm | 2007-10-22 13:30:49 -0400Nick Mathewson
Move functions into and out of dirvote.c so that it contains all the v3 authority functionality, and no non-authority functionality. svn:r12107
2007-10-21 r15991@catbus: nickm | 2007-10-20 20:08:29 -0400Nick Mathewson
Fix a nasty bug in DownloadExtraInfo implementation where we would discard, download, discard, download ad infinitum. svn:r12069
2007-10-19 r15966@catbus: nickm | 2007-10-19 13:56:28 -0400Nick Mathewson
Voting side of proposal 122 svn:r12052
2007-10-19 r15957@catbus: nickm | 2007-10-19 12:22:18 -0400Nick Mathewson
Report our IP address in our vote if it turns out that our hostname isn't a fqdn. svn:r12047
2007-10-17 r15877@catbus: nickm | 2007-10-17 12:54:56 -0400Nick Mathewson
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
2007-10-15 r15806@catbus: nickm | 2007-10-15 19:14:57 -0400Nick Mathewson
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
2007-10-15Make last commit compileNick Mathewson
svn:r11953
2007-10-15Add some debugging logs related to dir vote timing.Nick Mathewson
svn:r11952
2007-10-12 r15731@catbus: nickm | 2007-10-12 17:27:48 -0400Nick Mathewson
Move "sort a list of routerinfo_t" into its own function in routerlist.c svn:r11903
2007-10-11 r14887@Kushana: nickm | 2007-10-11 11:19:39 -0400Nick Mathewson
Fix some XXX020s in dirserv.c svn:r11870
2007-10-11 r15679@catbus: nickm | 2007-10-11 09:51:33 -0400Nick Mathewson
Remove code to generate v1 directories. svn:r11866
2007-10-11 r15670@catbus: nickm | 2007-10-10 20:08:14 -0400Nick Mathewson
Restore a removed assert. svn:r11861
2007-10-10let bridge authorities write bridge descriptors to theirRoger Dingledine
cached-descriptors* files. nick, did i get this right? svn:r11855
2007-10-10get r11842 closer to what i wantRoger Dingledine
svn:r11851
2007-10-10Tweak the implementation of proposal 109 slightly: allow at mostRoger Dingledine
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
2007-10-09 r15599@catbus: nickm | 2007-10-09 16:44:36 -0400Nick Mathewson
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
2007-10-04 r15530@catbus: nickm | 2007-10-04 12:16:27 -0400Nick Mathewson
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
2007-09-27 r15422@catbus: nickm | 2007-09-27 16:42:35 -0400Nick Mathewson
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
2007-09-27 r15412@catbus: nickm | 2007-09-27 12:04:24 -0400Nick Mathewson
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
2007-09-26 r15400@catbus: nickm | 2007-09-26 12:13:12 -0400Nick Mathewson
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
2007-09-22 r15279@catbus: nickm | 2007-09-22 02:00:06 -0400Nick Mathewson
V3 authority work: fetch missing votes and/or signatures as needed. svn:r11575
2007-09-20bugfix on r11110:Roger Dingledine
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
2007-09-20it works better when it compilesRoger Dingledine
svn:r11531
2007-09-20Resume listing "AUTHORITY" flag for authorities in network status.Roger Dingledine
Bugfix on 0.2.0.3-alpha; reported by Alex de Joode. svn:r11530
2007-09-17trivial doxygen thingRoger Dingledine
svn:r11463
2007-09-17 r14448@Kushana: nickm | 2007-09-17 14:26:56 -0400Nick Mathewson
Unify all of the divergent median/nth-percentile code in container.[ch] svn:r11457
2007-08-22 r14185@Kushana: nickm | 2007-08-22 11:07:01 -0400Nick Mathewson
Add some voting-related documentation. svn:r11255
2007-08-21 r14758@catbus: nickm | 2007-08-21 01:36:03 -0400Nick Mathewson
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
2007-08-17help nick work on proposal 108Roger Dingledine
svn:r11148
2007-08-15 r14032@Kushana: nickm | 2007-08-15 11:35:16 -0400Nick Mathewson
Add unit tests for median functions; enforce sensible ranges for intervals and delays. svn:r11121
2007-08-14 r14020@Kushana: nickm | 2007-08-14 16:07:37 -0400Nick Mathewson
return 404 properly when somebody requests a bunch of nonexistent statuses/servers svn:r11110