aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
Commit message (Collapse)AuthorAge
...
* let an authdir that's not a naming authdir start evenRoger Dingledine2006-03-18
| | | | | | | | if it doesn't have an approved-routers file. if it does, read it and parse it as usual. svn:r6182
* Implement GETINFO(dir/server/foo); status will be harder.Nick Mathewson2006-03-15
| | | | svn:r6165
* change INET_NTOA_BUF_LEN+1 to INET_NTOA_BUF_LENPeter Palfrader2006-03-14
| | | | | | | add a comment in a few places where we add weird numbers to buffer lengths svn:r6161
* Fix an off-by-one buffer size in dirserv.c that magically never hit ourPeter Palfrader2006-03-14
| | | | | | | three authorities but broke sjmurdoch's own tor network. svn:r6157
* 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
* lower the reachability timeout, so we're more likely to actRoger Dingledine2006-03-12
| | | | | | | quickly if a server stops being reachable. svn:r6141
* We screwed up in anticipating how to add new dirservers:Roger Dingledine2006-03-12
| | | | | | | | | | | | | Old servers won't realize they're supposed to stay connected to the new dirservers, so they'll expire connections to them, but that means the dirservers will list them as unreachable. So the fix is to stop requiring an open connection when deciding if a server is reachable. This makes us slightly less accurate, but at least it will work. svn:r6140
* Use escaped() for remaining cases.Nick Mathewson2006-03-11
| | | | svn:r6117
* Possible bug 265 fix: authorities must be more strict than clients about age ↵Nick Mathewson2006-03-08
| | | | | | of acceptable routers; make routers publish every 12 hours; client ROUTER_MAX_AGE must be greater than NETWORKSTATUS_MAX_AGE+authoirty ROUTER_MAX_AGE. svn:r6095
* 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
* the things we do for our windows users.Roger Dingledine2006-02-13
| | | | | | | i hope they appreciate it. svn:r6004
* Happy new year!Roger Dingledine2006-02-09
| | | | svn:r5949
* Move "sort list of versions" logic into routerparse.c; make version-checking ↵Nick Mathewson2006-02-06
| | | | | | code say which versions it would have accepted. (not tested.) svn:r5927
* when building v2 statuses or v1 running-routers, don't admit theRoger Dingledine2006-02-05
| | | | | | | | | | existence of descriptors older than a day. we still cache them in case anybody asks, but we don't actively mention them. svn:r5913
* Add a missing printf argNick Mathewson2006-01-24
| | | | svn:r5861
* Make dirservers generate a separate "guard" flag to mean, "would make a good ↵Nick Mathewson2006-01-24
| | | | | | entry guard". Make clients parse it and vote on it. svn:r5856
* Indirect access to the signed_descriptor field to make it easier to keep ↵Nick Mathewson2006-01-12
| | | | | | them lazily on disk. svn:r5827
* Appease verbose gcc warning: make dirserv_compute_stable_uptime() static.Nick Mathewson2006-01-11
| | | | svn:r5792
* balance the reachability testing so a smidgen of it happensRoger Dingledine2006-01-10
| | | | | | | | every 10 seconds. this way we don't try to do 500 tls's at once every 20 minutes. svn:r5763
* Be more aggressive about throwing away expired router descriptors: they are ↵Nick Mathewson2006-01-10
| | | | | | of no use to anybody. Better still: dont serve expired descriptors by fingerprint. The only people who ask for them are busted 0.1.1.10 Tors that will throw them away and re-request them after 30 minutes. svn:r5762
* Fix bug in last commit. Also, fix bug 231: authorities should never treat ↵Nick Mathewson2006-01-08
| | | | | | their own descriptor changes as cosmetic. svn:r5755
* Fix bug 236: caches should cache up to 16 unrecognized network-status docs.Nick Mathewson2006-01-08
| | | | svn:r5754
* cleanups, and remove some unreachable code.Roger Dingledine2006-01-04
| | | | svn:r5727
* authdirs now stop whining so loudly about bad descriptors that they fetchRoger Dingledine2006-01-04
| | | | | | | | from other dirservers. now when there's a log complaint, it's for sure from a freshly uploaded descriptor. svn:r5726
* when we choose not to use a server descriptor from our cache, don'tRoger Dingledine2006-01-03
| | | | | | | log it so loudly. svn:r5713
* make the "stable" flag in network-status be the median of the uptimesRoger Dingledine2006-01-02
| | | | | | | | of running valid servers. that way the cutoff adapts to the stability of the network as a whole. svn:r5693
* Add "panic" option to reject all servers not in fingerprint list.Nick Mathewson2005-12-15
| | | | svn:r5601
* Make clients look at the fast and stable flags in networkstatus, not at the ↵Nick Mathewson2005-12-15
| | | | | | bandwidth and uptime declared in the router descriptors. svn:r5599
* Whitespace fixes; comments.Nick Mathewson2005-12-15
| | | | svn:r5596
* Bite the bullet and limit all our source lines to 80 characters, the way IBM ↵Nick Mathewson2005-12-14
| | | | | | intended. svn:r5582
* Have dirctory authorites note which servers make good V2 directory caches in ↵Nick Mathewson2005-12-12
| | | | | | publishe network-status. svn:r5574
* 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
* let the user configure a sockslistenaddress on other private IPsRoger Dingledine2005-12-09
| | | | | | | | besides 127.x.y.z without complaining. and give a better message in the log. svn:r5544
* Fix bug 212: Directory authorities should not try to download server ↵Nick Mathewson2005-12-06
| | | | | | descriptors that they know they will reject. svn:r5514
* Rename connection_get_by_identity_digest to reflect that it is OR-only. ↵Nick Mathewson2005-11-30
| | | | | | Make it use a hashtable instead of a linear search. svn:r5469
* Funny. I could have sworn that it compiled.Nick Mathewson2005-11-29
| | | | svn:r5467
* Fix a bug weasel found: when we are an authority and somebody requests "all" ↵Nick Mathewson2005-11-29
| | | | | | statuses, cconsider regenerating our own. svn:r5466
* Ancient gcc does not like you when you declare variables in the middle of a ↵Peter Palfrader2005-11-20
| | | | | | block svn:r5437
* Add a new controller event type that allows controllers to get allPeter Palfrader2005-11-19
| | | | | | | | server descriptors that were uploaded to a router in its role as authoritative dirserver. svn:r5436
* Recover better from TCP connections to Tor servers that are broken butRoger Dingledine2005-11-19
| | | | | | | | | | | | | | | | don't tell you (it happens!); and rotate TLS connections once a week. 1) If an OR conn becomes more than a week old, make it obsolete. 2) If it's obsolete and empty, kill it. 3) When an OR makes a second connection to you, allow it. 4) If we want to send a new create cell, but the best conn we've got is obsolete, and the router is 0.1.1.9-alpha-cvs or later, ask for a new conn instead. 5) When we time out on circuit building on the first hop, make that connection obsolete. svn:r5429
* 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
* more doc cleanups and reorganizingRoger Dingledine2005-11-01
| | | | svn:r5336
* Free the v2 directory networkstatus on exit. (Not a leak.)Nick Mathewson2005-10-29
| | | | svn:r5330
* aaand another leak. Oops, I guess I lied to weasel when I told him there ↵Nick Mathewson2005-10-28
| | | | | | was no leak here. svn:r5329
* Start making directory caches retain old routerinfo_t. The code to remove ↵Nick Mathewson2005-10-27
| | | | | | old ones is definitely some textbook C problem. svn:r5323
* fix a nasty corruption bugNick Mathewson2005-10-25
| | | | svn:r5319
* Remove last vestiges of old logging interface.Nick Mathewson2005-10-25
| | | | svn:r5317
* Switch remaining files to new log interface.Nick Mathewson2005-10-25
| | | | svn:r5315