Commit Graph

5927 Commits

Author SHA1 Message Date
Roger Dingledine
63bb27f19d be more thorough about noticing when a directory request has failed:
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
2005-09-12 07:36:26 +00:00
Nick Mathewson
3dc5e77b58 Numerous changes to move towards client-side v2 directories.
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
2005-09-12 06:56:42 +00:00
Nick Mathewson
e4272f1978 answer question
svn:r5010
2005-09-12 06:37:31 +00:00
Roger Dingledine
a63e17bdd5 fix some grammar and ask a question
svn:r5008
2005-09-12 06:32:20 +00:00
Roger Dingledine
5cebd8df70 remove temporary network-status keyword
svn:r5007
2005-09-12 06:14:41 +00:00
Roger Dingledine
89d516f95c clean up the log entry for when a server posts a server descriptor that
the dirserver doesn't like


svn:r5005
2005-09-12 06:08:48 +00:00
Nick Mathewson
695da58d7f Dir spec change: Clarify rules on how to treat servers based on networkstatus values. Is this sane?
svn:r5004
2005-09-12 05:51:43 +00:00
Nick Mathewson
8d70ae01b8 Fix a memory leak in smartlist_string_remove.
svn:r5002
2005-09-12 05:20:29 +00:00
Nick Mathewson
63dfe2447e Fix bug found by "ca": looking up a non-existent stream for a v1 control connection would cause a segfault. (No backport needed since 0.1.0 had only v0 connections.)
svn:r5001
2005-09-12 03:32:30 +00:00
Nick Mathewson
24bfac635d Document SMARTLIST_FOREACH macro, along with previously-naughty foo_sl_idx variable.
svn:r5000
2005-09-11 23:14:14 +00:00
Roger Dingledine
70958407f7 it's a new month
svn:r4999
2005-09-11 22:43:23 +00:00
Roger Dingledine
d7d4d4cbbf fix comment and return value for check_software_version_against_directory()
svn:r4996
2005-09-11 22:36:50 +00:00
Roger Dingledine
43df34a4b8 reference exit policy faq entry, and add an item about rate limiting.
svn:r4995
2005-09-11 22:29:29 +00:00
Roger Dingledine
aa8321331f add weasel's check-tor script to tor/contrib/
svn:r4994
2005-09-11 22:12:32 +00:00
Roger Dingledine
6e6f1d07da two more bugs we should fix
svn:r4993
2005-09-10 21:12:40 +00:00
Peter Palfrader
0ceab199b0 Do not use unaligned access on some more archs
svn:r4992
2005-09-10 20:44:05 +00:00
Roger Dingledine
b0a5ba4248 downgrade the dirserver log messages when whining about unreachability
svn:r4991
2005-09-10 20:40:16 +00:00
Peter Palfrader
7a61dbed77 new upstream version
svn:r4989
2005-09-10 08:18:30 +00:00
Roger Dingledine
cfe34812eb bugfix: if you gave tor an odd number of command-line arguments,
we were silently ignoring the last one. now we complain and fail.


svn:r4988
2005-09-10 04:40:27 +00:00
Roger Dingledine
e782ee344a bump to 0.1.1.6-alpha-cvs
svn:r4987
2005-09-10 03:41:39 +00:00
Roger Dingledine
2ad3e4ff96 we estimated our release date wrong (ha)
svn:r4985
2005-09-10 02:54:35 +00:00
Roger Dingledine
9b54cd349d break out a new function config_assign_value() that just assigns the
value it's given, and doesn't do any of their weird clearing or resetting
stuff. use that when we're trying to clear or reset values.


svn:r4984
2005-09-10 02:42:32 +00:00
Nick Mathewson
a4f32e77ef Fix segfault in win32 unittests.
svn:r4983
2005-09-10 02:34:32 +00:00
Roger Dingledine
e58ca648c6 bump to 0.1.1.6-alpha
this time for sure


svn:r4982
2005-09-10 01:47:27 +00:00
Nick Mathewson
d26523e089 Use tor_listdir in test.c instead of duplicating ode.
svn:r4981
2005-09-10 01:42:42 +00:00
Roger Dingledine
eab048b7f3 add more items to the 0.1.1.6-alpha changelog
svn:r4980
2005-09-10 01:33:15 +00:00
Roger Dingledine
3d0394cdc6 add another todo item
svn:r4979
2005-09-10 01:09:00 +00:00
Roger Dingledine
1d9786a392 generalize route length to three plus one if the exit node is risky.
svn:r4978
2005-09-10 01:01:40 +00:00
Nick Mathewson
035b1953eb Add sorting/searching to smartlist
svn:r4977
2005-09-09 23:12:54 +00:00
Roger Dingledine
67b27f566c and say that in the man page
svn:r4975
2005-09-09 22:47:08 +00:00
Roger Dingledine
cfa321374d reject ports 465 and 587 by default now too
svn:r4974
2005-09-09 22:46:43 +00:00
Nick Mathewson
6b479b3cfa Only do openssl accel stuff if version is at least 0.9.7
svn:r4973
2005-09-09 22:07:15 +00:00
Nick Mathewson
09d83c564b Add missing arg to windows tor_listdir()
svn:r4972
2005-09-09 21:34:59 +00:00
Nick Mathewson
2f6eb10fb4 Implement tor_listdir on windows. Untested.
svn:r4971
2005-09-09 21:29:23 +00:00
Peter Palfrader
1ea5d312e5 Forward port 06_add_compile_time_defaults.dpatch
svn:r4970
2005-09-09 21:22:52 +00:00
Peter Palfrader
23008f292a Forward port 03_tor_manpage_in_section_8.dpatch
svn:r4969
2005-09-09 21:17:14 +00:00
Peter Palfrader
86af49911d Even more experimental cvs snapshot.
Testsuite is mandatory again.


svn:r4968
2005-09-09 21:11:57 +00:00
Nick Mathewson
dcf1e14190 downgrade warning to info
svn:r4967
2005-09-09 21:03:57 +00:00
Roger Dingledine
a5ea401b2e a few more hints on a rare but mysterious warning
svn:r4966
2005-09-09 20:58:44 +00:00
Nick Mathewson
047e105daf Fix a bug in config_dump: we want to run options_validate on the defaults, not (again, uselessly) on the configuration. This was introduced when we made the config code more generic.
svn:r4965
2005-09-09 20:08:26 +00:00
Roger Dingledine
35b78b2d8e clean up the rendezvous warn log msgs, and downgrade some to info
svn:r4964
2005-09-09 19:54:28 +00:00
Nick Mathewson
0de64f224e Warn in more detail when network-status serving and fetching fails. Also, fix a small leak.
svn:r4963
2005-09-09 19:37:12 +00:00
Roger Dingledine
42f752a0a5 bugfix: we were automatically condemning an exit node (concluding
its advertised exit policy is different from its real one) as soon
as it refused any requests.
After fixing that bug, another bug appeared: we would try the same
server again and again, since once we learned an IP address for a
hostname, we still kept think of it as the hostname. now pass it to
the remapper before trying to reattach.


svn:r4962
2005-09-09 06:11:37 +00:00
Roger Dingledine
a60345a2c5 fix duplicate word
svn:r4961
2005-09-09 02:12:32 +00:00
Roger Dingledine
843550721a stop notifying people about dns worker spawning and culling
it just freaks them out


svn:r4960
2005-09-09 02:03:31 +00:00
Roger Dingledine
2065c5f7aa when printing x-forwarded-by headers, don't print the \r
svn:r4959
2005-09-09 02:02:20 +00:00
Roger Dingledine
d0d3d77f48 step nine: raise your ulimit -n
svn:r4958
2005-09-09 00:56:26 +00:00
Nick Mathewson
ef75fd5a63 Update item status: note future work on client directory handling
svn:r4957
2005-09-08 22:06:58 +00:00
Nick Mathewson
bd911d8612 Fix segfault and memleak when getting many compressed server descs.
svn:r4956
2005-09-08 22:00:29 +00:00
Nick Mathewson
659491bbc6 Fix some messages that say "failing".
svn:r4955
2005-09-08 21:46:31 +00:00