aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
Commit message (Collapse)AuthorAge
* actually listen when we try to route our dir connection via tor.Roger Dingledine2005-11-19
| | | | svn:r5432
* Start obeying our firewall options more rigorously:Roger Dingledine2005-11-19
| | | | | | | | | | | | - If we can't get to a dirserver directly, try going via Tor. - Don't ever try to connect (as a client) to a place our firewall options forbid. - If we specify a proxy and also firewall options, obey the firewall options even when we're using the proxy: some proxies can only proxy to certain destinations. svn:r5431
* If we stop knowing about a dirserver between request and answer, do not die.Nick Mathewson2005-11-08
| | | | svn:r5351
* 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
* answer nick's XXX, and muck with some log domain choicesRoger Dingledine2005-11-01
| | | | svn:r5339
* Fix a fun bug that was probably causing unnecessary downloads, and that ↵Nick Mathewson2005-10-27
| | | | | | coupld possibly have caused some segfaults: When post-processing a split fingerprint URL, we were trying to base16_decode() entries already in the fingerprint list, failing, and removing them. Ow. svn:r5326
* Remove last vestiges of old logging interface.Nick Mathewson2005-10-25
| | | | svn:r5317
* Change more files to new loggin interface. 3 left.Nick Mathewson2005-10-25
| | | | svn:r5310
* Fix memory leak when retrieving networkstatus or routerdesc by malformed ↵Nick Mathewson2005-10-25
| | | | | | fingerprint svn:r5307
* Make dirserv_get_routerdescs() return better http 404 error messages instead ↵Peter Palfrader2005-10-18
| | | | | | of a generic "Servers unavailable." svn:r5274
* Some http status lines ended in a dot, others did not. Make it all the same ↵Peter Palfrader2005-10-18
| | | | | | and remove the period from all svn:r5270
* Downgrade a few INFO level logs to DEBUG again. Also add two or three newPeter Palfrader2005-10-17
| | | | | | | | logs in cases where a calling function's log was downgraded and we wouldn't get any log message otherwise. svn:r5263
* when providing content-type application/octet-stream for providingRoger Dingledine2005-10-17
| | | | | | | | | server descriptors with .z, we were leaving out the content-encoding header. oops. (everything tolerated this just fine, but that doesn't mean we need to be part of the problem.) svn:r5258
* Make a few INFO log lines into DEBUGPeter Palfrader2005-10-17
| | | | svn:r5257
* Enable trivial "download by descriptor digest" functionality.Nick Mathewson2005-10-14
| | | | svn:r5250
* Try to extract as many descriptors as possible from truncated http ↵Nick Mathewson2005-10-14
| | | | | | responses. (when DIR_PURPOSE_FETCH_ROUTERDESC) svn:r5249
* Allow tor_gzip_uncompress to extract as much as possible from truncated ↵Nick Mathewson2005-10-13
| | | | | | compressed data. Also, fix a bug where truncated compressed data could break tor_gzip_uncompress. [This last part is a backport candidate.] svn:r5247
* authorities do not replace server descriptors where nothing semantically ↵Nick Mathewson2005-10-12
| | | | | | relevant has changed since the last upload. svn:r5240
* improve INFO-level logging for directory downloads. This is still too ↵Nick Mathewson2005-10-05
| | | | | | chatty, but it will help us analyze things. svn:r5197
* size_t int printf muckingRoger Dingledine2005-10-05
| | | | svn:r5194
* Downgrade noisy log messages in preparation for an alpha release.Nick Mathewson2005-10-05
| | | | svn:r5188
* Give a less frequent and more helpful warning on failed serverdesc downloadsNick Mathewson2005-10-05
| | | | svn:r5187
* When we get an EOF or a timeout on a directory connection, note how many ↵Nick Mathewson2005-10-04
| | | | | | bytes of serverdesc we are dropping. This will help us determine whether it is smart to parse incomplete serverdesc responses. svn:r5186
* Resolve several DOCDOCs. Make non-mirrors only launch routerdesc downloads ↵Nick Mathewson2005-09-30
| | | | | | when they have more than 16 router descriptors to download, or when 10 minutes have passed since the last download. svn:r5166
* resolve nick's commentRoger Dingledine2005-09-30
| | | | svn:r5163
* Note that there is incorrect behavior in directory.c code. Arma, please ↵Nick Mathewson2005-09-30
| | | | | | check this too. svn:r5161
* Reformat inconsistent function declarations.Nick Mathewson2005-09-30
| | | | svn:r5160
* do the other half of dirport reachability testing.Roger Dingledine2005-09-29
| | | | | | | it should be back and working now. svn:r5155
* better cleanups as i figure out what's going onRoger Dingledine2005-09-29
| | | | svn:r5154
* move some code around when we're succeeding or failing at fetchingRoger Dingledine2005-09-29
| | | | | | | | server descs. also clean up some formatting. svn:r5153
* Fix crash-on-wakeup bug in networkstatus download.Nick Mathewson2005-09-26
| | | | svn:r5144
* Log even less verbosely. Also, do not download old (frequently-updating) ↵Nick Mathewson2005-09-23
| | | | | | servers more than once every 2 hours. svn:r5134
* Fix at least one overzealous download bug. (tor_malloc_zero new ↵Nick Mathewson2005-09-23
| | | | | | local_routerstatus_t objs); add a pile of logs back in; probe every 10sec; never autolaunch on failure. Let us see if this works better. svn:r5125
* I love the smell of C in the morning. Make router-download rules smarter ↵Nick Mathewson2005-09-22
| | | | | | (download more so long as we dont duplicate existing requests; relaunch at staggered intervals); relaunch one a minute or on failure; reset 60 minutes; always open 3 requests if we can; add authority opinion to networkstatus; make naming rule correct. There is a remaining bug where we retry servers too quickly; We need to look at that harder. svn:r5110
* Use a separate type for "local view of router status". Also, even though I ↵Nick Mathewson2005-09-22
| | | | | | told arma there was no need, replace an ugly O ( n lg n ) algorithm with a nice O ( n ) algorithm when stepping through servers. Some ugliness is just too bad to stand. svn:r5109
* content-type bugfixes:Roger Dingledine2005-09-22
| | | | | | | | | | http://seppia.noreply.org/tor/dir.z was being declared text/plain and http://seppia.noreply.org/tor/server/fp/719BE45DE224B607C53707D0E2143E2D423E74CF was being declared application/octet-stream svn:r5108
* Make give-up-on-failure actually work: it seems the servers gave me a real ↵Nick Mathewson2005-09-18
| | | | | | test case. svn:r5091
* Prevent a "try forever to download an unobtainable descriptor" bug. Still ↵Nick Mathewson2005-09-18
| | | | | | remaining: the "give up forever" bug. svn:r5090
* Remove a bunch of #if0d code that I no longer need to look at.Nick Mathewson2005-09-16
| | | | svn:r5083
* Resolve/expand some XXXXs and improve a log message or twoNick Mathewson2005-09-16
| | | | svn:r5082
* Add a missing returnNick Mathewson2005-09-16
| | | | svn:r5079
* Unify our "figure out which fingerprints we were downloading" code.Nick Mathewson2005-09-16
| | | | svn:r5077
* Add some (notice, for now) log messages that imply confusing things are ↵Nick Mathewson2005-09-15
| | | | | | happening. svn:r5076
* And some documentation before bed.Nick Mathewson2005-09-15
| | | | svn:r5073
* Stop downloading directories and download routers instead. This still needs ↵Nick Mathewson2005-09-15
| | | | | | some work, but at last clients are finally on the new architecture. Next comes the tuning and bugfixing. svn:r5070
* Big commit: clients start downloading and using network-statuses.Nick Mathewson2005-09-14
| | | | | | | | | | | | | | | | | | | | | Only caches need to get running-routers; nobody needs to parse, store, or use it. Same for the router-status line in the directories. Add many #if 0's that can get removed once I'm convinced they don't contain anything I'm forgetting. Start all newly-parsed routers as non-running and non-valid; update them from the list of network statuses. Update all routers when a new networkstatus comes in. After 3 tries for a networkstatus, clients give up until they're told to try again. "Let's get those missles ready to **DESTROY THE UNIVERSE**!" -TMBG svn:r5063
* bugfix: when we try to determine the reachability of our dirport,Roger Dingledine2005-09-14
| | | | | | | | and it doesn't work, don't freak out and mark ourselves as down and try somewhere else. just calmly fail. svn:r5050
* add docs, fix whitespace, and make ANY rule in routerparse a little tighter.Nick Mathewson2005-09-13
| | | | svn:r5031
* be more thorough about noticing when a directory request has failed:Roger Dingledine2005-09-12
| | | | | | | | it has failed not only when the connection attempt fails, but also if the conn reaches eof before we get a response that we're happy with. svn:r5013
* Numerous changes to move towards client-side v2 directories.Nick Mathewson2005-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | connection.c: - Add some more connection accessor functions to make directory download redundancy checking work. directory.c, or.h, router.c, routerlist.c: - Start on logic to note when networkstatus downloads fail. dirserv.c, routerlist.c, routerparse.c: - Start maintaining an is_named field in routerstatus_t. Don't actually look at it yet. dirserv.c, routerlist.c: - Remove expired networkstatus objects. or.h: - Make some booleans into bitfields - Add prototypes routerlist.c: - Sort networkstatus list by publication time - Function to remove old (older than 10 days) networkstatus objects. - Function to set a list of routerinfo_ts' status info from the current set of networkstatus objects. - Function to tell which routerinfos we need to download based no the current set of networkstatus objects. - Do not launch a networkstatus download if a redundant one is in progress. routerparse.c: - Keep router entries in networkstatus sorted by digest. svn:r5012