Commit Graph

5733 Commits

Author SHA1 Message Date
Nick Mathewson
bd8ffccae7 More cleanups noticed by weasel; also, remove macros that nobody uses.
svn:r6143
2006-03-12 23:31:16 +00:00
Nick Mathewson
474c60b743 Cleanup on time-relaqted constants. New conventions:
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
2006-03-12 22:48:18 +00:00
Roger Dingledine
b67a5ba498 lower the reachability timeout, so we're more likely to act
quickly if a server stops being reachable.


svn:r6141
2006-03-12 21:24:03 +00:00
Roger Dingledine
1fc5eb329b We screwed up in anticipating how to add new dirservers:
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
2006-03-12 20:57:52 +00:00
Roger Dingledine
ef447507ff a better clean-up
svn:r6139
2006-03-12 20:51:02 +00:00
Roger Dingledine
a98b25137c and another fix
svn:r6138
2006-03-12 20:48:59 +00:00
Roger Dingledine
98476c71d2 make tor --verify-config closer to working
svn:r6137
2006-03-12 20:46:00 +00:00
Roger Dingledine
a4da44c2b9 Now do address rewriting when the controller asks us to attach
to a particular circuit too. This will let Blossom specify
"moria2.exit" without having to learn what moria2's IP address is.

It may also cause other controller authors some angst. Let us know.


svn:r6136
2006-03-12 05:04:16 +00:00
Roger Dingledine
d80d5370e0 when we get funny-looking lines on our dirport, shut up about it.
svn:r6135
2006-03-12 04:36:17 +00:00
Roger Dingledine
b5c6a990d3 fix assert while attachstream'ing a connect-wait or
resolve-wait stream.


svn:r6134
2006-03-12 04:33:29 +00:00
Roger Dingledine
80f0492a65 avoid shadowing a variable so we don't get sad later.
svn:r6133
2006-03-12 04:07:21 +00:00
Roger Dingledine
ef8939d5b3 bump to 0.1.1.15-rc-cvs
svn:r6132
2006-03-12 03:01:09 +00:00
Peter Palfrader
941fa7b7d9 Apparently passing --host to configure when not cross-compiling is evil now and
greatly confuses configure.  So don't do it unless it actually differs from
the --build host.


svn:r6129
2006-03-11 19:05:06 +00:00
Peter Palfrader
d99ae6c27a New upstream version
svn:r6128
2006-03-11 19:03:56 +00:00
Andrew Lewman
f8ab3d9b38 Remove pdfs since they aren't created this early in the process.
svn:r6127
2006-03-11 18:47:47 +00:00
Roger Dingledine
44ca1a997d bump to 0.1.1.15-rc
svn:r6126
2006-03-11 18:44:11 +00:00
Roger Dingledine
0bd46086c3 fix bug reported by gozu: if we get a linelist or linelist_s
config option from the torrc and it has no value, warn and
skip rather than silently resetting it to its default.


svn:r6125
2006-03-11 18:40:33 +00:00
Roger Dingledine
c8e2a051ac huge warning sign for esc_router_info()
svn:r6124
2006-03-11 17:52:55 +00:00
Andrew Lewman
a7768d77fe Include package_list.txt for detailed uninstallation on osx. Force the
osx uninstall script to actually clean up directories as well.  Make
TorPostflight actions safer.


svn:r6123
2006-03-11 06:13:08 +00:00
Andrew Lewman
5f45921186 Properly add the image to make the OSX install pretty.
svn:r6122
2006-03-11 05:35:47 +00:00
Andrew Lewman
f6352bbec9 Remove the image
svn:r6121
2006-03-11 05:33:33 +00:00
Andrew Lewman
ba0de3a7f4 This makes the install pretty.
svn:r6120
2006-03-11 05:23:44 +00:00
Andrew Lewman
1b9e830390 Include actual documentation with the installation, include the
uninstaller in executable format, and make the install pretty.


svn:r6119
2006-03-11 05:23:18 +00:00
Andrew Lewman
1ca6fa99e3 Include the osx uninstaller in the metapackage.
svn:r6118
2006-03-11 03:09:44 +00:00
Nick Mathewson
4d3e709c4b Use escaped() for remaining cases.
svn:r6117
2006-03-11 02:21:30 +00:00
Roger Dingledine
86a72f73b9 make entry guard logs even quieter
svn:r6116
2006-03-10 16:51:26 +00:00
Roger Dingledine
245fb8e8ba add johnny's further discussion on incentives.
svn:r6115
2006-03-09 22:21:07 +00:00
Roger Dingledine
e11f900a2a stop printing a log message at every iteration through the
event loop when holding open a conn for flushing but it
doesn't want to flush any more bytes yet.


svn:r6114
2006-03-09 06:34:33 +00:00
Roger Dingledine
9b55b50b87 add to the stack of implementation notes.
svn:r6113
2006-03-09 06:30:27 +00:00
Roger Dingledine
5f8d26496d Let the controller attachstream conns that are in connect_wait
or resolve_wait: we detach them first and then act as before.
Resolves bug 264.


svn:r6112
2006-03-09 06:29:53 +00:00
Roger Dingledine
a0865e2f8e distribute contrib/rc.subr in the tarball
svn:r6111
2006-03-09 02:01:15 +00:00
Roger Dingledine
cbf503de63 update the todo file. getting closer.
svn:r6110
2006-03-09 01:47:31 +00:00
Roger Dingledine
fe6f11b6f4 document AuthDirRejectUnlisted in the man page
svn:r6109
2006-03-09 01:47:04 +00:00
Roger Dingledine
40bd6467a5 first cut of a 0.1.1.15-rc changelog
svn:r6108
2006-03-09 01:42:42 +00:00
Roger Dingledine
26d611d27a correct weasel's note in the dir spec
svn:r6107
2006-03-09 01:10:17 +00:00
Roger Dingledine
82d1fdbaea don't abandon entry guards until they've been dead a whole month.
make entry guard log messages quieter.


svn:r6106
2006-03-09 00:55:55 +00:00
Roger Dingledine
44107f6ec4 Implement NEWNYM. Nick, did I do a bad thing?
svn:r6105
2006-03-09 00:18:16 +00:00
Roger Dingledine
8a72c2bd62 new controller signal NEWNYM that makes new application requests
use clean circuits.


svn:r6104
2006-03-09 00:16:44 +00:00
Roger Dingledine
0f39033b9f clean up typo
svn:r6103
2006-03-09 00:10:28 +00:00
Roger Dingledine
dadb346136 make the tor.nsi version accurate
svn:r6102
2006-03-09 00:04:50 +00:00
Roger Dingledine
946317ae13 start using OR_CONN_EVENT_NEW.
also fixes a seg fault in tor (bug 261).


svn:r6101
2006-03-08 22:29:08 +00:00
Roger Dingledine
39964206d8 introduce a new orconn_status "NEW"
svn:r6100
2006-03-08 22:26:36 +00:00
Roger Dingledine
8db1e363c9 remove some redundant code now that we compress exit policies
after parsing them


svn:r6099
2006-03-08 19:34:34 +00:00
Nick Mathewson
9479bd0275 Document AuthDir(Invalid|Reject)
svn:r6098
2006-03-08 08:17:25 +00:00
Nick Mathewson
6f6bbc6f91 Add rc.subr from Peter Thoenen. I have no idea what an rc.subr is, but apparently BSD people do. (Closing bug 256.)
svn:r6097
2006-03-08 07:30:07 +00:00
Roger Dingledine
cf4809258e forward-port the 0.1.0.17 changelog
svn:r6096
2006-03-08 06:56:28 +00:00
Nick Mathewson
1ce3713889 Possible bug 265 fix: authorities must be more strict than clients about age 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
2006-03-08 06:29:52 +00:00
Geoff Goodell
e6389096b5 mark controller exposure of directory data as DRAFT and Not Implemented
svn:r6094
2006-03-08 00:13:54 +00:00
Peter Palfrader
1c3a5025f1 Say that /tor/server/authority is not used by useful nonetheless
svn:r6093
2006-03-08 00:13:05 +00:00
Peter Palfrader
2942c0bde8 Clarify server/d/<D>.z description
Spell out that fingerprints in requests should use capital A-F letters for their hex


svn:r6092
2006-03-08 00:10:01 +00:00