Nick Mathewson
306d5400c3
r12643@0-41-wifi: nickm | 2007-03-23 14:56:35 -0400
...
Refactor a bunch of functions that take edge_connection_t not to also take a crypt_path_t; the cpath is implicit.
svn:r9899
2007-03-24 15:57:51 +00:00
Roger Dingledine
2cf63f8a62
Don't save non-general-purpose router descriptors to the disk cache,
...
because we have no way of remembering what their purpose was when
we restart.
svn:r9894
2007-03-21 15:37:30 +00:00
Roger Dingledine
c36a6210a2
put the stopgap on whether we've sent a create cell, not
...
whether we've attached a stream.
svn:r9883
2007-03-20 03:26:51 +00:00
Roger Dingledine
93e7627694
a stopgap measure while we wait for proposal 111: apply the
...
stricter rate limiting to all OR conns except those that have
been touched by local circuits.
svn:r9882
2007-03-20 03:21:51 +00:00
Roger Dingledine
b4f743562f
Add a separate set of token buckets for relayed traffic. Right
...
now that's just defined as answers to directory requests.
svn:r9881
2007-03-20 02:55:31 +00:00
Roger Dingledine
4ab0b979b2
temporary hack to solve bug 384, so i can get on with debugging
...
other stuff.
svn:r9880
2007-03-20 02:10:18 +00:00
Roger Dingledine
0724bc113f
correct a function comment that's become wrong
...
svn:r9879
2007-03-19 23:32:30 +00:00
Nick Mathewson
141efb86ff
r12230@catbus: nickm | 2007-03-17 17:34:32 -0400
...
Remove some duplicated code in control.c: unify the "parse space-separated arguments and warn if there are too few" logic into a single helper function.
svn:r9866
2007-03-17 21:34:41 +00:00
Nick Mathewson
d787ef906a
r12229@catbus: nickm | 2007-03-17 17:20:28 -0400
...
Add a warning when using obsolete "GUARDS" event. Also, remove obsolete "if (1) {}"s from control.c: big patch, mostly just dedenting block contents.
svn:r9865
2007-03-17 21:34:37 +00:00
Nick Mathewson
f8f5ea10de
r12191@catbus: nickm | 2007-03-15 15:33:37 -0400
...
Check return values from pthread_mutex functions.
svn:r9862
2007-03-17 21:09:49 +00:00
Roger Dingledine
75754b4d8e
other minor fixes lurking in my sandbox
...
svn:r9854
2007-03-17 04:34:31 +00:00
Roger Dingledine
9d7dc1b37b
forward-port r9850 and the changelogs
...
(it's a band)
svn:r9853
2007-03-17 04:32:04 +00:00
Roger Dingledine
4813ff04e8
Fix an infinite loop introduced in 0.1.2.7-alpha when we serve
...
directory information requested inside Tor connections (i.e. via
begin_dir cells). It only triggered when the same connection was
serving other data at the same time. Reported by seeess.
Backport candidate.
svn:r9841
2007-03-16 06:55:09 +00:00
Roger Dingledine
d374616301
clean up some minor typos and log confusions
...
svn:r9832
2007-03-15 22:47:21 +00:00
Nick Mathewson
e50e6b4e3c
r12182@catbus: nickm | 2007-03-15 10:58:12 -0400
...
Clarify section of dir-spec.txt that explains how "v" resolution happens.
svn:r9829
2007-03-15 16:27:57 +00:00
Roger Dingledine
ad304a5cbb
change my mind -- correct the spec to match the code's
...
behavior for getinfo addr-mappings/*. this is because
the code and spec have been mismatched since at least
0.1.1.x, so i would be surprised if nobody at all is
relying on the current behavior.
backport candidate.
backbackport candidate.
svn:r9823
2007-03-15 06:25:00 +00:00
Roger Dingledine
8ca31c8195
Make the response to 'getinfo addr-mappings/*' follow the spec.
...
svn:r9822
2007-03-15 06:10:58 +00:00
Roger Dingledine
c995a36972
typo in error message led to breaking the protocol. also
...
pointed out by daejees.
svn:r9819
2007-03-15 03:15:34 +00:00
Roger Dingledine
5b8adc7c9b
Make 'getinfo fingerprint' return a 551 error if we're not a
...
server, so we match what the control spec claims we do. Reported
by daejees.
svn:r9818
2007-03-15 03:11:53 +00:00
Roger Dingledine
5740071674
the spec called it a GUARDS event, but the code called
...
it a GUARD event. standardize on GUARD, but support people
asking for GUARDS too. reported by daejees.
backport candidate.
svn:r9817
2007-03-14 23:50:41 +00:00
Roger Dingledine
bf3b3a44f3
Stop allowing hibernating servers to be "stable" or "fast".
...
This is what I meant to do in r9690 but didn't actually do.
svn:r9808
2007-03-13 01:59:09 +00:00
Nick Mathewson
6363a7ccf5
r12538@Kushana: nickm | 2007-03-11 17:10:22 -0400
...
Fix a lame assert, I hope.
svn:r9801
2007-03-11 21:10:54 +00:00
Roger Dingledine
7fedd6ab4e
best not to introduce new technical terms if we don't need to
...
svn:r9800
2007-03-11 20:52:07 +00:00
Nick Mathewson
98c3403ce7
r12535@Kushana: nickm | 2007-03-11 16:34:40 -0400
...
Fix a comment and add a couple of assert to try to track down another assert in routerlist_assert_ok()
svn:r9799
2007-03-11 20:34:44 +00:00
Nick Mathewson
f25e2167f5
r12533@Kushana: nickm | 2007-03-11 05:01:15 -0400
...
Oh. Tor was supposed to compile?
svn:r9797
2007-03-11 09:05:17 +00:00
Nick Mathewson
97b61b9889
r12519@Kushana: nickm | 2007-03-10 00:57:01 -0500
...
Remove a redundant check for event.h; add some comments, and reformat.
svn:r9790
2007-03-10 07:38:42 +00:00
Roger Dingledine
4ca75ecc49
holy cow, those windows unames are long. don't distract so
...
much from the important part of this log message.
svn:r9789
2007-03-10 06:33:44 +00:00
Roger Dingledine
a247792169
Directory authorities now call routers stable if they have an
...
uptime of at least 30 days, even if that's not the median uptime
in the network. Implements proposal 1xx, suggested by Kevin Bauer
and Damon McCoy.
svn:r9788
2007-03-10 05:43:35 +00:00
Nick Mathewson
02ce8e6b12
r12474@Kushana: nickm | 2007-03-06 16:10:05 -0500
...
We have a PATH_SEPARATOR macro. How about we use it?
svn:r9782
2007-03-09 21:39:30 +00:00
Nick Mathewson
d62e37b4a9
r12473@Kushana: nickm | 2007-03-06 15:49:45 -0500
...
Excise PREDICT and PREDICT_FALSE in favor of PREDICT_LIKELY and PREDICT_UNLIKELY.
svn:r9781
2007-03-09 21:39:19 +00:00
Roger Dingledine
fe94914b98
Put a platform string (e.g. "Linux i686") in the startup log
...
message, so when people paste just their logs, we know if it's
openbsd or windows or what.
svn:r9775
2007-03-09 08:56:39 +00:00
Roger Dingledine
b97dca4510
forward-port the bugfix from juliusz
...
svn:r9772
2007-03-09 08:48:53 +00:00
Roger Dingledine
064ff7b33d
get rid of an info-level log message that occurs many times a
...
minute when we haven't needed circuits lately.
svn:r9771
2007-03-09 08:48:21 +00:00
Nick Mathewson
2036470b62
r12098@catbus: nickm | 2007-03-06 18:48:50 -0500
...
Try to make unit tests happier on 64-bit platforms.
svn:r9752
2007-03-06 23:48:55 +00:00
Nick Mathewson
5d1bee87ff
r12468@Kushana: nickm | 2007-03-06 15:24:00 -0500
...
More unit tests: gcov is fun.
svn:r9748
2007-03-06 20:25:44 +00:00
Nick Mathewson
c9e2766e75
r12461@Kushana: nickm | 2007-03-06 13:26:17 -0500
...
More autoconf fixes and updates. Maybe the bsd buildbots will be happy again.
svn:r9747
2007-03-06 20:25:32 +00:00
Roger Dingledine
78cbfcf651
and one more not-really-an-error case
...
svn:r9743
2007-03-06 19:37:18 +00:00
Roger Dingledine
5217d3680e
clean up a log message, and stop calling it an error when
...
we exit cleanly
svn:r9742
2007-03-06 19:33:43 +00:00
Nick Mathewson
52713788b4
r12080@catbus: nickm | 2007-03-04 21:40:55 -0500
...
Remove dnsworkers and related code. there goes another 550 lines of code.
svn:r9736
2007-03-05 02:40:58 +00:00
Nick Mathewson
92f62b3684
r12077@catbus: nickm | 2007-03-04 16:08:23 -0500
...
Remove support for v0 control protocol from 0.2.0.x trunk; send back error when we receive a v0 control message. (Leave "if(v1){...}"blocks indented for now so this patch is easier to read.) ((Finally, the linecount goes _down_ a little.))
svn:r9735
2007-03-04 21:08:28 +00:00
Nick Mathewson
4a6e29b029
r12076@catbus: nickm | 2007-03-04 15:41:04 -0500
...
oops; remove spurious argument from _log_prefix.
svn:r9734
2007-03-04 21:08:26 +00:00
Nick Mathewson
7fcceb2c25
r12074@catbus: nickm | 2007-03-04 15:11:43 -0500
...
Make all LD_BUG log messsages get prefixed with "Bug: ". Remove manually-generated "Bug: "s from log-messages. (Apparently, we remembered to add them about 40% of the time.)
svn:r9733
2007-03-04 20:11:46 +00:00
Nick Mathewson
6b79e252f6
r12063@catbus: nickm | 2007-03-04 14:46:22 -0500
...
Bump trunk version to 0.2.0.0-alpha-dev
svn:r9730
2007-03-04 19:49:06 +00:00
Nick Mathewson
70e5a83a77
r12057@catbus: nickm | 2007-03-04 13:58:32 -0500
...
Clarify some log messages; note others that could be improved later.
svn:r9724
2007-03-04 18:58:38 +00:00
Nick Mathewson
5f9f62daa2
r12053@catbus: nickm | 2007-03-03 16:45:38 -0500
...
Remove some XXX012s: leave a check in connection_or_set_identity_digest it costs basically nothing to do on average. Forget about reinstating the user check on NT Service creation. Note that a notice message in main.c ("Is something wrong with your network connection?") is really useless.
svn:r9721
2007-03-03 21:55:31 +00:00
Nick Mathewson
25508347ec
r12051@catbus: nickm | 2007-03-03 16:15:52 -0500
...
nt_service_is_stopping should not load the NT service library calls: if they are not loaded, we cannot possibly be a service trying to shut own. Bug found by "norvid" on or-talk. Also, rename function to something slightly less error-prone.
svn:r9720
2007-03-03 21:16:07 +00:00
Nick Mathewson
bd9289cf2b
svn:r9719
2007-03-03 20:09:15 +00:00
Nick Mathewson
275f39603b
r12420@Kushana: nickm | 2007-03-03 15:06:53 -0500
...
Bump version to 0.1.2.9-rc-dev
svn:r9718
2007-03-03 20:09:07 +00:00
Roger Dingledine
629930ad16
bump to 0.1.2.9-rc
...
svn:r9705
2007-03-02 05:18:52 +00:00
Roger Dingledine
6b191f854c
resolve another xxx012
...
svn:r9701
2007-03-01 04:40:43 +00:00
Roger Dingledine
dba4e040fc
Disable encrypted directory connections when we don't have a server
...
descriptor for the destination. We'll get this working again in
the 0.2.0 branch.
svn:r9700
2007-03-01 04:26:30 +00:00
Roger Dingledine
a46bd9942d
bonus points if it builds on 64 bit
...
svn:r9698
2007-03-01 03:59:28 +00:00
Roger Dingledine
b0aaa88433
make the prefertunnel stuff less obviously broken
...
svn:r9697
2007-03-01 03:56:21 +00:00
Nick Mathewson
2780bb74c8
r12014@catbus: nickm | 2007-02-28 19:41:20 -0500
...
Niels has accepted the patch from Scott Lamb to implement better signal handling: I can take "get the pthread_sigprocmask situation under control" off my plate.
svn:r9696
2007-03-01 00:41:35 +00:00
Nick Mathewson
df5a8aa931
r12013@catbus: nickm | 2007-02-28 18:26:13 -0500
...
Note a piece of code that needs to get resolved, before we forget it.
svn:r9695
2007-03-01 00:41:33 +00:00
Nick Mathewson
11d89141ac
r12012@catbus: nickm | 2007-02-28 18:25:18 -0500
...
Twiddle constants wrt uploading hidden service descriptors.
svn:r9694
2007-03-01 00:41:28 +00:00
Nick Mathewson
dec9e4f0d8
r12011@catbus: nickm | 2007-02-28 18:13:32 -0500
...
Back out insufficiently evidenced FULL_UNROLL in aes.c
svn:r9693
2007-03-01 00:41:25 +00:00
Nick Mathewson
e2b1a77c3e
r12006@catbus: nickm | 2007-02-28 16:06:24 -0500
...
On mingw, use "%I64u" to printf/scanf 64-bit integers, instead of the usual GCC "%llu". This prevents a bug when saving 64-bit int configuration values on mingw; the high-order 32 bits would get truncated. If the value was then reloaded, disaster would occur. (Fixes bug 400 and maybe also bug 397.) Backport candidate.
svn:r9691
2007-02-28 21:07:19 +00:00
Roger Dingledine
b78f67dbf5
- Stop calling servers that have been hibernating for a long time
...
"stable". Also, stop letting hibernating or obsolete servers affect
uptime and bandwidth cutoffs.
- Stop listing hibernating servers in the v1 directory.
svn:r9690
2007-02-28 21:06:05 +00:00
Roger Dingledine
9fd669c339
note another wishlist item for the arma
...
svn:r9689
2007-02-28 20:49:09 +00:00
Nick Mathewson
f38240435a
r12001@catbus: nickm | 2007-02-28 15:24:12 -0500
...
Try to build without warnings on mingw with verbose warnings on. First attempt.
svn:r9688
2007-02-28 20:24:27 +00:00
Nick Mathewson
3008c3b768
r12000@catbus: nickm | 2007-02-28 15:12:21 -0500
...
Try to fix eventdns bug 326 again, this time by noting that rcode 2 (serverfailed) does not really mean "The server is useless."
svn:r9687
2007-02-28 20:24:23 +00:00
Roger Dingledine
08c75f4349
avoid a few headaches
...
svn:r9686
2007-02-28 20:24:09 +00:00
Nick Mathewson
dfbced7499
r11998@catbus: nickm | 2007-02-28 13:56:55 -0500
...
Correct an MSC_VER check.
svn:r9685
2007-02-28 18:57:03 +00:00
Nick Mathewson
2ee2e63631
r11996@catbus: nickm | 2007-02-28 13:52:48 -0500
...
Add an MSC_VER check I missed.
svn:r9684
2007-02-28 18:52:57 +00:00
Nick Mathewson
e1176ece5a
r11992@catbus: nickm | 2007-02-28 12:46:32 -0500
...
compile fix on mingw: mingw does not define _MSC_VER.
svn:r9682
2007-02-28 17:46:36 +00:00
Nick Mathewson
deef370a1c
r11987@catbus: nickm | 2007-02-28 12:34:04 -0500
...
add another u64-related unit test.
svn:r9681
2007-02-28 17:34:07 +00:00
Nick Mathewson
c8659db28d
r11982@catbus: nickm | 2007-02-28 11:55:41 -0500
...
Add unit tests for tor_parse_uint64
svn:r9678
2007-02-28 16:56:28 +00:00
Nick Mathewson
dae5fc7982
r11981@catbus: nickm | 2007-02-28 11:55:27 -0500
...
Clamp declarable bandwidth at INT32_MAX, not INT_MAX.
svn:r9677
2007-02-28 16:56:07 +00:00
Nick Mathewson
d6368fd075
r11976@catbus: nickm | 2007-02-27 19:35:59 -0500
...
Add some missing (redundant but helpful in most cases) static declarations, and remove a function nobody was calling.
svn:r9672
2007-02-28 00:36:03 +00:00
Nick Mathewson
1a3e1c5510
r11970@catbus: nickm | 2007-02-27 19:17:27 -0500
...
Fix a bug found by Udo van den Heuvel: avoid an assertion failure when a controller sets and clears EntryNodes before the next call to choose_random_entry(). Also make a function static.
svn:r9669
2007-02-28 00:23:05 +00:00
Nick Mathewson
16f1008d01
Add a missing paren, and the results of an experiment.
...
svn:r9664
2007-02-27 06:00:11 +00:00
Nick Mathewson
9d714e6258
r11959@catbus: nickm | 2007-02-26 22:53:36 -0500
...
try to make aes encryption of cells about 30-40% faster where applicable. offer not available for all architectures or all versions of openssl.
svn:r9663
2007-02-27 03:53:45 +00:00
Nick Mathewson
4d127acb53
r11958@catbus: nickm | 2007-02-26 22:28:03 -0500
...
Add a missing set to onion_key_set_at to avoid premature rotates.
svn:r9662
2007-02-27 03:53:40 +00:00
Nick Mathewson
230fbd95c0
r11956@catbus: nickm | 2007-02-26 13:33:49 -0500
...
Add a quick-and-dirty AES benchmark function to the bottom of aes.c so I can go collecting data.
svn:r9660
2007-02-26 18:33:55 +00:00
Nick Mathewson
82e2d6001a
r11954@catbus: nickm | 2007-02-26 13:01:19 -0500
...
Note some optimizations that are probably not worth it for 0.1.2.x based on preliminary profiling.
svn:r9659
2007-02-26 18:01:23 +00:00
Nick Mathewson
a5b18f8a65
r11952@catbus: nickm | 2007-02-26 12:37:06 -0500
...
Bump version to 0.1.2.8-beta-dev
svn:r9658
2007-02-26 17:37:09 +00:00
Roger Dingledine
38f5fac846
let us call it a beta. perhaps it will break then.
...
svn:r9656
2007-02-26 06:53:19 +00:00
Roger Dingledine
522a97098b
more cleanups; getting closer
...
svn:r9655
2007-02-26 05:36:02 +00:00
Roger Dingledine
9e44449946
fix a bug in our logic, but point out that maybe it's moot
...
svn:r9654
2007-02-26 05:33:17 +00:00
Nick Mathewson
333bf44471
r11944@catbus: nickm | 2007-02-25 14:43:18 -0500
...
Add a lower-bound on MaxAdvertisedBandwidth.
svn:r9652
2007-02-25 19:43:23 +00:00
Nick Mathewson
938de88e3b
r11942@catbus: nickm | 2007-02-25 11:22:12 -0500
...
Fix connection_get_by_type_state_rendquery(): This has been bogus for most of 0.1.2.x. Thanks to Karsten Loesing for finding the bug; fixes bug 399.
svn:r9651
2007-02-25 16:22:36 +00:00
Roger Dingledine
5fd4f7c131
the other half of r9572, suggested by seeess: when we receive
...
a v1 dir or rr that is too old, don't even cache it.
svn:r9649
2007-02-25 03:43:00 +00:00
Nick Mathewson
dde4bc1fd3
r11933@catbus: nickm | 2007-02-24 18:55:33 -0500
...
Fix a bug in 9572: after we decref a defunct v1 directory, drop the main reference to it. Should fix bug 396. Many thanks to seeess for tracking this one down.
svn:r9648
2007-02-24 23:55:36 +00:00
Roger Dingledine
d6c21ab8a7
tell the user if we're delaying his newnym request. also, pick
...
a different set of fenceposts.
svn:r9647
2007-02-24 21:21:38 +00:00
Nick Mathewson
af57074f08
r11931@catbus: nickm | 2007-02-24 15:28:34 -0500
...
crank up the length of the maximum allowed control message.
svn:r9644
2007-02-24 20:28:41 +00:00
Nick Mathewson
b4243d7dfa
r11929@catbus: nickm | 2007-02-24 15:02:43 -0500
...
Split possibly long log line.
svn:r9643
2007-02-24 20:02:47 +00:00
Nick Mathewson
501659e67c
r11927@catbus: nickm | 2007-02-24 14:49:31 -0500
...
Make sure every error case of router_dump_router_to_string warns about what actually went wrong.
svn:r9642
2007-02-24 19:49:35 +00:00
Roger Dingledine
fc81b71055
if we can't read bandwidthrate, at least tell us what it was.
...
svn:r9640
2007-02-24 19:29:42 +00:00
Nick Mathewson
cc64d1f111
r11917@catbus: nickm | 2007-02-24 03:18:52 -0500
...
Fix another XXX012 in eventdns.c: tell the DNS request about malformed DNS replies.
svn:r9637
2007-02-24 08:18:59 +00:00
Roger Dingledine
50f22e858a
doc pedant
...
svn:r9634
2007-02-24 07:50:38 +00:00
Nick Mathewson
f599adf40a
r11909@catbus: nickm | 2007-02-24 02:37:40 -0500
...
Move tricky "delete the member of the smartlist currently under iteration" logic into its own happyfun macro.
svn:r9633
2007-02-24 07:37:45 +00:00
Roger Dingledine
2015479b5a
fix crash introduced in r9622
...
svn:r9632
2007-02-24 06:44:40 +00:00
Roger Dingledine
748c502e3a
fix a log message that was broken long ago and never noticed
...
svn:r9630
2007-02-24 05:36:45 +00:00
Roger Dingledine
d63c58249e
make it stop crashing when i exercise the new entrynodes behavior in
...
r9574. this hack is getting pretty darn hackish; perhaps it's time to
not use SMARTLIST_FOREACH in this situation.
svn:r9629
2007-02-24 04:17:29 +00:00
Roger Dingledine
33430d3a9e
bugfix on r9568: we were throwing around an uninitialized
...
nickname array, and only treating a server as reachable if
the array magically has the right nickname in it. this was
causing the authorities to label only themselves as running,
and clients were "mysteriously" failing.
svn:r9628
2007-02-24 01:26:09 +00:00
Roger Dingledine
9946bb7fbd
cosmetic, comment, and todo fixes
...
svn:r9627
2007-02-24 01:12:53 +00:00
Nick Mathewson
4e05ccb289
r11900@catbus: nickm | 2007-02-23 18:11:04 -0500
...
Fix null-pointer access on update_router_descriptor_cache_downloads.
svn:r9626
2007-02-23 23:11:08 +00:00
Nick Mathewson
ddc34f6037
r11898@catbus: nickm | 2007-02-23 16:55:43 -0500
...
Two XXX012 comments turned out to be bogus; remove them and document why.
svn:r9625
2007-02-23 21:56:10 +00:00
Nick Mathewson
55cbbdf9bf
r11895@catbus: nickm | 2007-02-23 15:12:58 -0500
...
Make remap stream events have a souce; make them generated every time we get a successful connected or resolved cell. Also change reported stream target address to IP consistently when we get the IP from an exit node.
svn:r9624
2007-02-23 20:13:02 +00:00
Nick Mathewson
f1d207b29a
r11885@catbus: nickm | 2007-02-23 13:34:24 -0500
...
Fix an XXXX012: make entry guards _really_ get retried when the network comes back online.
svn:r9622
2007-02-23 18:34:35 +00:00
Nick Mathewson
a98efbf285
r11877@catbus: nickm | 2007-02-22 02:24:50 -0500
...
Fix doc about when circuit_build_needed_circs() is called. Resolves another xxxx012.
svn:r9617
2007-02-22 07:41:14 +00:00
Nick Mathewson
a2a52b4d5f
r11876@catbus: nickm | 2007-02-22 02:23:13 -0500
...
Fix two XXXX012 issues in routerlist.c: a possible performance issue hasnt shown up on any profiles, so unflag it. Stop warning when we get a router descriptor that we asked for but no longer want: just drop it (if we are not a cache) or cache if (if we are).
svn:r9616
2007-02-22 07:41:10 +00:00
Nick Mathewson
b3392559d4
r11873@catbus: nickm | 2007-02-22 01:21:14 -0500
...
twiddle signewnym rate-limiting patch so every signal gets handled eventually. document it in control-spec. add a changelog.
svn:r9615
2007-02-22 06:21:19 +00:00
Nick Mathewson
fe9224dabc
r11872@catbus: nickm | 2007-02-22 01:08:46 -0500
...
patch from mwenge: rate-limit newnym.
svn:r9614
2007-02-22 06:21:16 +00:00
Nick Mathewson
0fb179aa2e
r11860@catbus: nickm | 2007-02-21 00:56:15 -0500
...
Another optimization suggested by Shark output: shave off >90% of uses of logv by cutting down on calls to log_debug when log actually debugging. This is showing up in some profiles bug not others, and might be as much as 2.5%.
svn:r9612
2007-02-21 05:57:12 +00:00
Nick Mathewson
809a4daa52
r11859@catbus: nickm | 2007-02-21 00:53:27 -0500
...
Fix use of predict. this should get refactored, but now now.
svn:r9611
2007-02-21 05:57:08 +00:00
Nick Mathewson
2a4fc8533c
r11858@catbus: nickm | 2007-02-21 00:27:44 -0500
...
As a trivial optimization, remove a redundant call to router_have_minimum_dir_info. This might shave 2% on some systems by according to some profilers.
svn:r9610
2007-02-21 05:56:53 +00:00
Nick Mathewson
275ce1d2a4
r11852@catbus: nickm | 2007-02-20 17:25:17 -0500
...
Reverse arguments in memset() call in no-mmap version of tor_munmap_file(). Resolves bug 392. Spotted by "fookoowa"--thanks!
svn:r9604
2007-02-20 22:25:20 +00:00
Nick Mathewson
b6e6b7101b
r11850@catbus: nickm | 2007-02-20 13:34:13 -0500
...
Apply patch from coderman: have posix subthreads mask out signals. This could prevent some kinds of crashes when subthreads try to handle SIGPIPEs and die in the attempt. Backport candidate.
svn:r9603
2007-02-20 18:34:18 +00:00
Nick Mathewson
aade1b9204
r11844@catbus: nickm | 2007-02-17 16:53:42 -0500
...
Note a problematic warning.
svn:r9599
2007-02-17 23:49:50 +00:00
Nick Mathewson
d2893398f6
r11832@catbus: nickm | 2007-02-16 15:31:59 -0500
...
Fix 35 remaining DOCDOC comments. Yowza.
svn:r9596
2007-02-16 20:39:37 +00:00
Nick Mathewson
a3ec172e1a
r11827@catbus: nickm | 2007-02-16 15:00:39 -0500
...
Try to fix VC++ int conversion warning.
svn:r9595
2007-02-16 20:01:21 +00:00
Nick Mathewson
11e5656ab7
r11826@catbus: nickm | 2007-02-16 14:58:38 -0500
...
Resolve 56 DOCDOC comments.
svn:r9594
2007-02-16 20:01:02 +00:00
Nick Mathewson
ae7576a19e
r11825@catbus: nickm | 2007-02-16 14:04:36 -0500
...
Fix DOCDOC items in or.h; rename a couple of macros to be more sensible.
svn:r9593
2007-02-16 20:00:50 +00:00
Nick Mathewson
d4aaffc6e7
r11824@catbus: nickm | 2007-02-16 13:16:47 -0500
...
Move all struct-offset-manipulation macros into util.h, and use them consistently. Because there are days when "SUBTYPE_P(handle, subtype, _base)" is just easier to read and write than "(basetp*)(((handle) - STRUCT_OFFSET(subtype, _base))".
svn:r9592
2007-02-16 20:00:43 +00:00
Nick Mathewson
e5d3269b10
r11822@catbus: nickm | 2007-02-16 12:49:20 -0500
...
Tech config.c about libevent 1.3, and resolve all docdoc elements in config.c
svn:r9591
2007-02-16 18:12:47 +00:00
Nick Mathewson
6e35b11851
r11813@catbus: nickm | 2007-02-14 11:42:58 -0500
...
Tweak stream_bw patch: Remove a couple of redundant checks, save 8 bytes per edge connection, fix spelling in the changelog; expand spec.
svn:r9586
2007-02-14 16:46:55 +00:00
Nick Mathewson
4a74812c70
r11812@catbus: nickm | 2007-02-14 11:22:08 -0500
...
Apply stream_bw patch from Robert Hogan.
svn:r9585
2007-02-14 16:46:49 +00:00
Nick Mathewson
a10ccac9cb
r11797@catbus: nickm | 2007-02-13 16:17:40 -0500
...
Fix a longstanding dnsworker-related bug: when we decide to kill a DNS worker for having been in use too long, and we independently decide to close one of the exit connections waiting for that DNS worker (perhaps because we got an END relay cell), it was possible for us to try to double-free the connection. We were smart enough to detect this and assert, but not smart enough to fix this bug before now. This should resolve bug 390. Backport candidate.
svn:r9581
2007-02-13 21:18:56 +00:00
Nick Mathewson
1c8a9d37b6
r11791@catbus: nickm | 2007-02-13 11:36:07 -0500
...
Try to fix mingw compile error reported by Li-Hui Zhou.
svn:r9578
2007-02-13 16:36:14 +00:00
Nick Mathewson
d9c095be3e
r11787@catbus: nickm | 2007-02-12 21:01:34 -0500
...
Always remove expired routers and networkstatus docs before checking whether we have enough information to build circuits. (Fixes bug 373.)
svn:r9575
2007-02-13 02:01:38 +00:00
Nick Mathewson
3c691b9da6
r11785@catbus: nickm | 2007-02-12 20:27:48 -0500
...
Node-picking fixes: Never warn when a down node is listed in a config option (bug 348); always warn when a node in a config option is unnamed. Also, when entrynodes is configured, then build the guard list as: (parts of EntryNodes that were guards before), (the rest of EntryNodes), (the rest of the old guards). This last point ensures that EntryNode users will get the EntryNodes they want with the minimum change to their guard list.
svn:r9574
2007-02-13 01:27:55 +00:00
Nick Mathewson
95b828b685
r11781@catbus: nickm | 2007-02-12 18:31:33 -0500
...
Discard any v1 directory info that is so old as to be useless. (Fixes bug 387)
svn:r9572
2007-02-12 23:39:24 +00:00
Nick Mathewson
b16c544509
r11779@catbus: nickm | 2007-02-12 16:52:29 -0500
...
Do not try to load advapi32.dll except when the user asks us to do something with NT services. When we _do_ try, always treat failure to load service functions as an exit-worthy error. Needs testing. (Fixes bug 389)
svn:r9571
2007-02-12 21:52:32 +00:00
Nick Mathewson
759c58151e
r11775@catbus: nickm | 2007-02-12 16:39:09 -0500
...
Update copyright dates.
svn:r9570
2007-02-12 21:39:53 +00:00
Nick Mathewson
30e7c05075
r11774@catbus: nickm | 2007-02-12 16:31:47 -0500
...
Handle errors on opening cached-routers* more uniformly and sanely: log not-found errors at level INFO, and all other errors at level WARN. Needs testing on win32.
svn:r9569
2007-02-12 21:39:44 +00:00
Nick Mathewson
0c40a080a4
r11773@catbus: nickm | 2007-02-12 15:18:48 -0500
...
Implement proposal 106: stop requiring clients to have certificates, and stop checking for nicknames in certificates. [See proposal 106 for rationale.] Also improve messages when checking TLS handshake, to re-resolve bug 382.
svn:r9568
2007-02-12 21:39:33 +00:00
Roger Dingledine
5915eecdb3
be even pickier about our socks command. this resolves a warning
...
we get when we hang up on an unhandshaked socks connection. i'm
still seeing these from polipo. darn it.
svn:r9565
2007-02-12 03:01:36 +00:00
Roger Dingledine
4e67d5196f
remove the socks-wait verbose logging. juliusz found and fixed the
...
polipo bug.
svn:r9553
2007-02-11 02:36:51 +00:00
Roger Dingledine
731d37f717
more useful log messages when we give up on a stream
...
svn:r9552
2007-02-11 02:15:42 +00:00
Nick Mathewson
24e7b9b983
r12213@Kushana: nickm | 2007-02-10 16:25:39 -0500
...
Refactor setconf implementation to be a little slower, but far less error prone.
svn:r9549
2007-02-10 21:26:29 +00:00
Nick Mathewson
2c521d9804
r12212@Kushana: nickm | 2007-02-10 16:09:38 -0500
...
Remove XXXX012 for apparently resolved bug
svn:r9548
2007-02-10 21:26:17 +00:00
Roger Dingledine
01ddb05fba
Stop crashing when the controller asks us to resetconf more than
...
one config option at once. (Vidalia 0.0.11 does this.)
Backport candidate.
svn:r9545
2007-02-10 07:04:46 +00:00
Roger Dingledine
b3ac3acefc
If we start a server with ClientOnly 1, then set ClientOnly to 0
...
and hup, stop triggering an assert based on an empty onion_key.
svn:r9540
2007-02-09 00:22:43 +00:00
Nick Mathewson
ec54857870
r11732@catbus: nickm | 2007-02-08 18:12:54 -0500
...
Fix an "uninitialized variable" warning.
svn:r9536
2007-02-08 23:24:03 +00:00
Nick Mathewson
76f61da37b
r11727@catbus: nickm | 2007-02-08 17:07:50 -0500
...
Explain that update_router_desciptor_downloads happens every 10 seconds in main.c, and we don't need to call it from directory.c
svn:r9534
2007-02-08 22:08:04 +00:00
Nick Mathewson
e00a1cbf16
r11726@catbus: nickm | 2007-02-08 16:04:53 -0500
...
Resolve some XXXX012 items:
- Remove PathlenCoinWeight: if we want it again, we can add it
back in.
- Ditto with RelayBandwidth*.
- Decide to leave in the "hey, you didn't set end_reason!" BUG log message,
but stop telling people to bug me personally.
- Postpone strengthening assert_connection_ok(): it's important, but
it's also a good way to introduce weird bugs.
- Move some expensive consistency checking from dns_free_all() into
assert_cache_ok().
svn:r9533
2007-02-08 22:07:56 +00:00
Roger Dingledine
90b53beec5
add a comment so i stop worrying
...
svn:r9532
2007-02-08 20:27:58 +00:00
Nick Mathewson
a1a9c66ce5
r11717@catbus: nickm | 2007-02-08 14:44:30 -0500
...
Clear up some XXX012s in routerlist.c: make smartlist_choose_by_bandwidth handle statuses with no corresponding routers much better.
svn:r9531
2007-02-08 19:44:55 +00:00
Nick Mathewson
69def349e0
r11716@catbus: nickm | 2007-02-08 14:19:24 -0500
...
Warn when we get a v0 control connection.
svn:r9530
2007-02-08 19:44:48 +00:00
Nick Mathewson
9c081ab976
r11715@catbus: nickm | 2007-02-08 14:07:03 -0500
...
Oops; the change in tor_version_is_obsolete broke a unit test.
svn:r9529
2007-02-08 19:44:36 +00:00
Nick Mathewson
85d3c2fbaf
r11702@catbus: nickm | 2007-02-08 02:10:19 -0500
...
Wow. Remember when I wrote that script to tell me about macros that were never used? Good times.
svn:r9525
2007-02-08 07:24:15 +00:00
Nick Mathewson
1e2d5f30ff
r11700@catbus: nickm | 2007-02-08 02:03:50 -0500
...
Fix several bugs in computing recommended versions. 1) refactor is-this-version-good handling and which-vesions-are-good handling to be in the same place. 2) a version is recommended if more than half of the versioning authorities like it, not >= half. 3) "NEW_IN_SERIES" should mean, "I don't know of an 0.1.1.x this recent, and there are some 0.1.2.x versions out", not "I don't know of an 0.1.1.x this recent, but I know some older ones." This should resolve bug 383.
svn:r9523
2007-02-08 07:24:06 +00:00
Nick Mathewson
a24b9e6a66
r11694@catbus: nickm | 2007-02-07 13:25:01 -0500
...
Fix patch for 9510: never call control_event_stream_status on an exit connection. Should fix assert() noticed by xiando.
svn:r9514
2007-02-07 18:25:04 +00:00
Nick Mathewson
2e6feb646b
r11686@catbus: nickm | 2007-02-07 01:50:14 -0500
...
Set hibernate_end_time whenever we start hibernating. This fixes a problem where we would start hibernating upon startup (since it isn't time to wake up yet) but we would wind up setting the "stop hibernating" time not to the wakeup time, but to the end of the interval. Also, split hibernate_end_time from shutdown_time. Possible fix for bug 362.
svn:r9512
2007-02-07 06:54:33 +00:00
Nick Mathewson
071738c2d5
r11673@catbus: nickm | 2007-02-06 14:40:07 -0500
...
Report stream end events where a resolve succeeded or where we got a socks protocol error correctly, rather than calling both of them "INTERNAL". Turn ALREADY_SOCKS_REPLIED into a flag rather than a reason. This will help debug 367 part 2 a little.
svn:r9511
2007-02-07 06:54:27 +00:00
Nick Mathewson
026c11c42e
r11672@catbus: nickm | 2007-02-06 14:16:56 -0500
...
Fix third case of bug 367: make circuit get sent along with END_STREAM_REASON_DESTROY stream CLOSED events.
svn:r9510
2007-02-07 06:54:22 +00:00
Nick Mathewson
e7f558bd27
r11684@catbus: nickm | 2007-02-07 00:46:37 -0500
...
Bump version to 0.1.2.7-alpha-dev
svn:r9509
2007-02-07 05:52:55 +00:00
Roger Dingledine
f1ca295d23
bump to 0.1.2.7-alpha
...
svn:r9507
2007-02-07 05:32:35 +00:00
Nick Mathewson
295f6d4e0f
r11676@catbus: nickm | 2007-02-07 00:10:00 -0500
...
(Hopefully) final changes for 0.1.2.7-alpha: disable checking for whether the user account in question exists on --service install, since that seems to make windows go boom. We can figure out why later. Also, let the admin specify a password for the target user.
svn:r9506
2007-02-07 05:10:58 +00:00
Roger Dingledine
7828927a58
Only rewrite a conn's address based on X-Forwarded-For: headers
...
if it's a parseable public IP address; and stop adding extra quotes
to the resulting address.
svn:r9505
2007-02-07 03:40:06 +00:00
Roger Dingledine
690c9cc887
make a log message make more sense
...
svn:r9504
2007-02-07 02:55:34 +00:00
Nick Mathewson
534baec4a1
r11674@catbus: nickm | 2007-02-06 17:00:22 -0500
...
Remove a now-bogus assert() from nt_service_command_line(), and change option handling. (Now that we no longer force a -f, it is possible to have no command-line options for Tor-as-service.)
svn:r9503
2007-02-06 22:00:25 +00:00
Nick Mathewson
c4faebfa6d
r11667@catbus: nickm | 2007-02-06 13:36:18 -0500
...
The --service install code can no longer default to adding an -f option for the appdata directory of the current user, since the target user probably will not be able to read it. Instead, warn the user if no explicit torrc filename is given.
svn:r9502
2007-02-06 18:36:26 +00:00
Nick Mathewson
f4a1c17e5a
r11666@catbus: nickm | 2007-02-06 13:17:24 -0500
...
Implement an --ignore-missing-torrc option
svn:r9501
2007-02-06 18:36:21 +00:00
Nick Mathewson
0c4ab00658
r11664@catbus: nickm | 2007-02-06 11:55:37 -0500
...
More win32 account flumdummery: when LocalService exists, you can't detect it via LookupAccountName. The only good test is to see whether we're on win2k or earlier.
Apparently, somebody wouldn't know where to draw the line between implementation and interface if you gave them tracing paper and a copy of Stevens.
svn:r9499
2007-02-06 16:55:42 +00:00
Roger Dingledine
da5cd33ab8
stop crashing on nt service install; but matt says still not right
...
svn:r9496
2007-02-06 04:58:56 +00:00
Roger Dingledine
4ba57f68e4
more changes. i'm all caught up now.
...
svn:r9495
2007-02-06 02:49:07 +00:00
Roger Dingledine
9aa8e490f8
cleanups based on looking through svn commits
...
svn:r9491
2007-02-06 00:27:03 +00:00
Nick Mathewson
e0acb45b86
r11650@catbus: nickm | 2007-02-05 17:02:54 -0500
...
Resolve (I hope) remaining nt service compilation issues.
svn:r9489
2007-02-05 22:02:58 +00:00
Nick Mathewson
d930440ae5
r11648@catbus: nickm | 2007-02-05 16:48:50 -0500
...
Fix bugs in last nt services patch: syntax, typename.
svn:r9488
2007-02-05 21:48:53 +00:00
Nick Mathewson
8b238404de
r11646@catbus: nickm | 2007-02-05 16:15:48 -0500
...
Make default NT service user be LocalService. Again, I have no idea if this compiles, let alone if it works.
svn:r9487
2007-02-05 21:15:52 +00:00
Nick Mathewson
337fdb7eb6
r11643@catbus: nickm | 2007-02-05 15:44:59 -0500
...
Fix bug 254, sort of: make the default NT service user NetworkService rather than NULL (system). Also, add a --user argument to --service install so that admins can override this default: this latter point should take care of most of my objections to NetworkService. I have no idea whether this even compiles.
svn:r9486
2007-02-05 20:45:02 +00:00
Nick Mathewson
47ff0c7fc1
r11641@catbus: nickm | 2007-02-05 13:59:26 -0500
...
Add a REMAP state to stream events so that controllers can learn exactly when the target address for a stream has changed. May help Vidalia resolve confusions related to bug 375.
svn:r9484
2007-02-05 19:15:13 +00:00
Nick Mathewson
f02be02356
r11639@catbus: nickm | 2007-02-05 13:33:38 -0500
...
Add documentation to src/common/*.h; improve documentation for SMARTLIST_FOREACH; remove never-used options and corresponding tests from tor_strpartition.
svn:r9483
2007-02-05 18:33:52 +00:00
Nick Mathewson
03ef2156c9
r11637@catbus: nickm | 2007-02-05 12:41:51 -0500
...
Fix an XXXX012, and make circuits_pending_or_conns a static variable. In addition to cleaning up the code, this may also resolve Bug 386 if Roger has the right intuition there.
svn:r9482
2007-02-05 17:42:40 +00:00
Nick Mathewson
6149ab01f8
r12129@Kushana: nickm | 2007-02-03 09:57:36 -0500
...
Update assert_connection_ok() to match the "block tunnelled dir conn if the or conn is full" logic. This may fix bug 385.
svn:r9479
2007-02-03 14:57:47 +00:00
Nick Mathewson
275109d8b0
r11631@catbus: nickm | 2007-02-02 15:39:53 -0500
...
Add missing return statement.
svn:r9478
2007-02-02 20:39:55 +00:00
Nick Mathewson
fefba95363
r11629@catbus: nickm | 2007-02-02 15:06:17 -0500
...
Removing the last DOCDOC comment hurt so much that I had to use Doxygen to identify undocumented macros and comments, and add 150 more DOCDOCs to point out where they were. Oops. Hey, kids! Fixing some of these could be your first Tor patch!
svn:r9477
2007-02-02 20:06:43 +00:00
Nick Mathewson
e521c96cb1
r12123@Kushana: nickm | 2007-02-02 13:57:42 -0500
...
Resolve remaining DOCDOC comments.
svn:r9476
2007-02-02 18:58:11 +00:00
Nick Mathewson
07e6eecdb2
r12122@Kushana: nickm | 2007-02-02 10:41:39 -0500
...
Fail when we are unable to parse the nameserver configuration.
svn:r9475
2007-02-02 18:58:04 +00:00
Nick Mathewson
8507699256
r11624@catbus: nickm | 2007-02-01 13:17:35 -0500
...
Note a few questionable bits pointed out by RATS. (And no, RATS, I'm not about to stop having fixed-sized local buffers for you. I know how to use them, thankyouverymuch.)
svn:r9474
2007-02-01 18:33:02 +00:00
Nick Mathewson
6f2a92c5b3
r11621@catbus: nickm | 2007-02-01 13:09:18 -0500
...
Fix another VC compiler warning.
svn:r9473
2007-02-01 18:09:34 +00:00
Nick Mathewson
5cb99857bc
r11620@catbus: nickm | 2007-02-01 13:06:27 -0500
...
Call stat() slightly less often; use fstat() when possible.
svn:r9472
2007-02-01 18:09:27 +00:00
Nick Mathewson
e7ac17fdf5
r11613@catbus: nickm | 2007-01-30 19:58:03 -0500
...
Re-enable server side PTR-record cacheing.
svn:r9468
2007-01-31 00:58:06 +00:00
Nick Mathewson
49b5e5cf9c
r11610@catbus: nickm | 2007-01-30 17:44:02 -0500
...
Fix a bug in our assertions related to removing recently-completed DNS lookup attempts on exit. It is okay to find a cache entry with the same name as a DONE entry, so long it is not the same struct as the DONE entry.
svn:r9467
2007-01-30 22:44:24 +00:00
Nick Mathewson
76f896e714
r11607@catbus: nickm | 2007-01-30 17:19:27 -0500
...
Audit non-const char arguments; make a lot more of them const.
svn:r9466
2007-01-30 22:19:41 +00:00
Nick Mathewson
1894e7ea01
r11606@catbus: nickm | 2007-01-30 16:52:23 -0500
...
Write the entry guards section of path-spec; note a possible bug in cirbuitbuild.c; add a const; defer work on torrc.complete to be part of a bigger config documentation reorg.
svn:r9465
2007-01-30 22:19:31 +00:00
Nick Mathewson
a701cd7e97
r11591@catbus: nickm | 2007-01-29 17:31:02 -0500
...
Add an XXXX comment to dirserv.c so I can take it out of my todo email folder.
svn:r9459
2007-01-29 23:09:22 +00:00
Nick Mathewson
cd374f810c
r11586@catbus: nickm | 2007-01-29 13:13:27 -0500
...
Add a couple of fixes I turned up while writing regression tests for libevent: Allow DNS servers on ports other than 53, and handle TTLs correctly on reverse hostname lookups.
svn:r9458
2007-01-29 18:13:42 +00:00
Nick Mathewson
ac0dbc3d9b
r11585@catbus: nickm | 2007-01-29 11:26:03 -0500
...
Oops; fix compilation.
svn:r9457
2007-01-29 18:13:39 +00:00
Nick Mathewson
42d03890b4
r11584@catbus: nickm | 2007-01-29 11:25:40 -0500
...
Fix/update some XXX012 points.
svn:r9456
2007-01-29 18:13:37 +00:00
Nick Mathewson
21f5e06862
r11583@catbus: nickm | 2007-01-29 11:19:48 -0500
...
Make man page stop saying that BandwidthRate is for incoming bandwidth only; Add some XXX012s for config options that should maybe die.
svn:r9455
2007-01-29 18:13:34 +00:00
Roger Dingledine
f58678730c
there's such a thing as too much indirection
...
svn:r9451
2007-01-28 08:06:00 +00:00
Roger Dingledine
1fea3a1e59
stop trying to hand 'platform' all around directory.c when we have a
...
bit in routerstatus_t that tells us what we need to know.
svn:r9448
2007-01-27 21:18:08 +00:00
Roger Dingledine
88796acf4b
fix all the bugs i could find in nick's bridge dir commit.
...
let's hope i got them all.
svn:r9442
2007-01-27 20:44:09 +00:00
Roger Dingledine
d8d074f2e5
If the user asks to use invalid exit nodes, be willing to use the
...
unstable ones.
svn:r9441
2007-01-27 19:40:49 +00:00
Roger Dingledine
add7d7af19
Bring us one step closer to being able to establish an encrypted
...
directory tunnel without knowing a descriptor first. Still not
ready yet. As part of the change, now assume we can use a
create_fast cell if we don't know anything about a router.
svn:r9440
2007-01-27 19:29:16 +00:00
Roger Dingledine
b323126dda
remove an XXX; add two more.
...
svn:r9438
2007-01-27 19:02:37 +00:00
Roger Dingledine
283c61e5d5
If the socks handshake hasn't started, don't send a
...
"DNS resolve socks failed" handshake reply; just close it.
svn:r9437
2007-01-27 18:56:13 +00:00
Roger Dingledine
baeeadb6eb
avoid messy crashes (bugfix by nick)
...
svn:r9435
2007-01-27 18:33:33 +00:00
Roger Dingledine
c6fd3c7158
the other half of my patch. more coming later.
...
svn:r9434
2007-01-27 09:24:23 +00:00
Roger Dingledine
9057af692a
Weight directory requests by advertised bandwidth. Now we can
...
let servers enable write limiting but still allow most clients to
succeed at their directory requests.
svn:r9433
2007-01-27 09:13:19 +00:00
Nick Mathewson
9984cad6e8
r11552@catbus: nickm | 2007-01-27 03:55:02 -0500
...
This one is a little tricky. Our BEGIN_DIR implementation has a
problem: the dirserv conns will decide they can flush all their data
immediately, since the edge_conns will read greedily.
For our 0.1.2 workaround, we track which or_conn a bridged dirserv
conn is attached to, and stop writing when its outbuf is too full, and
start writing again when the or_conn's outbuf empties out a little.
This requires a bit of pointer management. Let's hope it works.
svn:r9432
2007-01-27 08:55:06 +00:00
Nick Mathewson
152547be49
r11548@catbus: nickm | 2007-01-27 00:15:47 -0500
...
Fix two assert bugs encountered when trying ipv6 lookups with eventdns code.
svn:r9430
2007-01-27 05:15:53 +00:00
Roger Dingledine
e9f6456b2c
Bugfix: If we're not marking exits as guards, ignore exit bandwidth
...
when we're deciding the required bandwidth to become a guard.
svn:r9423
2007-01-26 09:03:20 +00:00
Roger Dingledine
75a5fde460
Stop saying !is_internal_IP() when we really meant
...
connection_is_rate_limited(). One day this will be useful.
svn:r9422
2007-01-26 08:13:53 +00:00
Roger Dingledine
99c1771432
never refuse directory requests from local addresses
...
svn:r9421
2007-01-26 08:01:29 +00:00
Roger Dingledine
9d5449c52e
Inform the server operator when we decide not to advertise a
...
DirPort due to AccountingMax enabled or a low BandwidthRate. It
was confusing Zax, so now we're hopefully more helpful.
svn:r9404
2007-01-25 19:41:15 +00:00
Nick Mathewson
75db2a61cb
r11500@catbus: nickm | 2007-01-25 10:37:11 -0500
...
Fix argument types in printf: try to make buildbot happier.
svn:r9403
2007-01-25 15:37:14 +00:00
Roger Dingledine
bf9baa85a8
more hints as arma tracks down a polipo bug
...
svn:r9400
2007-01-24 23:58:41 +00:00
Nick Mathewson
71f47320f8
r11493@catbus: nickm | 2007-01-24 18:41:52 -0500
...
Use set_uint16/32 instead of raw assignments in order to make gcc happier.
svn:r9399
2007-01-24 23:42:00 +00:00
Nick Mathewson
5cd1f0680e
r11287@catbus: nickm | 2007-01-23 20:30:04 -0500
...
Yet more documentation. (Again, trying to see whether I have buildbot working).
svn:r9396
2007-01-24 01:30:07 +00:00
Roger Dingledine
c716eefbca
start tracking down a funny-looking log message
...
svn:r9395
2007-01-24 01:18:45 +00:00
Nick Mathewson
792f819212
r11285@catbus: nickm | 2007-01-23 19:43:50 -0500
...
More documentation. (Again, trying to see whether I have buildbot working).
svn:r9394
2007-01-24 00:43:52 +00:00
Nick Mathewson
2522c392bd
r11283@catbus: nickm | 2007-01-23 19:20:47 -0500
...
Add documentation to dns.c (mainly to test new buildbot version)
svn:r9393
2007-01-24 00:20:49 +00:00
Nick Mathewson
79dd306527
r11278@catbus: nickm | 2007-01-23 14:22:27 -0500
...
More doxygen comments: this time mainly around spooling and storing directory information.
svn:r9392
2007-01-23 19:22:52 +00:00
Nick Mathewson
ba53e0029f
r11277@catbus: nickm | 2007-01-23 14:08:08 -0500
...
When logging TLS certificate and identity-related errors, scrub IP addresses for incoming connections, and distinguish between incoming and outgoing connections in log messages. Backport candidate.
svn:r9391
2007-01-23 19:22:49 +00:00
Nick Mathewson
c0c67d28f5
r9727@catbus: nickm | 2007-01-22 16:12:39 -0500
...
Remove redundant check for whether _connection_write_to_buf_impl is called with a zlib and a non-directory connection: TO_DIR_CONN will already assert if it gets a non-dir connection.
svn:r9390
2007-01-23 19:22:46 +00:00
Nick Mathewson
adc5bb4d04
r9723@catbus: nickm | 2007-01-22 15:47:17 -0500
...
Fix an XXXX012 in routerlist.c: when we do not have enough networkstatuses to launch router requests, do not launch router requests. Backport candidate.
svn:r9388
2007-01-22 20:57:26 +00:00
Roger Dingledine
9f733c31cc
minor cleanups
...
svn:r9387
2007-01-22 19:20:33 +00:00
Nick Mathewson
36620ca056
r9718@catbus: nickm | 2007-01-22 14:13:00 -0500
...
Free CACHE_STATE_DONE cached_router_t items on dns_free_all().
svn:r9386
2007-01-22 19:13:02 +00:00
Nick Mathewson
84790d059f
r9715@catbus: nickm | 2007-01-22 02:51:04 -0500
...
Document a few undocumented functions and arguments.
svn:r9385
2007-01-22 07:51:06 +00:00
Roger Dingledine
ab838bddb8
Flush local controller connection buffers periodically as we're
...
writing to them, so we avoid queueing 4+ megabytes of data before
trying to flush.
Also add a new XXX012.
svn:r9382
2007-01-22 06:07:51 +00:00
Roger Dingledine
7b5f9887fa
resolve an XXX, add a new XXX, simplify some code
...
svn:r9381
2007-01-22 05:59:59 +00:00
Nick Mathewson
033e20ca0b
r9709@catbus: nickm | 2007-01-21 21:34:03 -0500
...
Fix memory leak on networkstatus 503.
svn:r9380
2007-01-22 02:34:50 +00:00
Nick Mathewson
e0ae28d0cd
r9701@catbus: nickm | 2007-01-21 13:21:25 -0500
...
Detect and reject another (harmless) class of DNS replies. Also, fix a couple of IPv6 bugs in evendns.c
svn:r9379
2007-01-21 18:21:39 +00:00
Nick Mathewson
ff62a4d91b
r9692@catbus: nickm | 2007-01-21 12:04:22 -0500
...
Detect pointer loops in DNS requests and replies; avoid infinite loop on such malformed replies. Fixes bug 380.
svn:r9378
2007-01-21 17:05:10 +00:00
Roger Dingledine
bcbd289af5
If our system clock jumps back in time, don't publish a negative
...
uptime in the descriptor. Also, don't let the global rate limiting
buckets go absurdly negative.
svn:r9377
2007-01-21 06:24:05 +00:00
Nick Mathewson
ef0720f909
r9689@catbus: nickm | 2007-01-19 22:34:20 -0500
...
And remove another strcpy.
svn:r9375
2007-01-20 03:35:03 +00:00
Nick Mathewson
c57ef84fc5
r11987@Kushana: nickm | 2007-01-19 14:57:28 -0500
...
Implement SOCKS_BAD_HOSTNAME status event. Defer remaining status events. Clean up control-spec.txt a little, and fill in recommendations for events.
svn:r9374
2007-01-19 21:25:32 +00:00
Nick Mathewson
39e50cbb48
r9776@totoro: nickm | 2007-01-18 14:37:01 -0500
...
Yes, apparently saying strcpy in front of openbsd is like saying "intellectual property" in front of RMS. They both have a point, I guess, even though they extend it to contexts where it is completely irrelevant.
svn:r9370
2007-01-18 19:37:23 +00:00
Roger Dingledine
060be4c62b
man, i could have sworn that compiled
...
svn:r9369
2007-01-18 03:42:45 +00:00
Roger Dingledine
a3eaabfeb2
Be willing to read or write on local connections (e.g. controller
...
connections) even when the global rate limiting buckets are empty.
svn:r9368
2007-01-18 03:38:24 +00:00
Roger Dingledine
cb472fc550
break out the big guns: reject dir requests much more
...
aggressively. my vidalia bandwidth graph, when rate limiting
to 32kB/s, has the "write" line constantly at 32kB. I can't
imagine what's going on with the relay latency but it can't
be good.
svn:r9366
2007-01-17 01:29:54 +00:00
Roger Dingledine
8662f18102
boots and suspenders, or whatever the idiom is
...
svn:r9365
2007-01-17 00:14:43 +00:00
Nick Mathewson
a36ec61fd7
r11983@Kushana: nickm | 2007-01-16 10:28:47 -0500
...
Be even more clever about severity of messages from eventdns: NOTICE when the first nameserver comes up; INFO on subsequent ones.
svn:r9364
2007-01-16 17:39:08 +00:00
Nick Mathewson
093d71762c
r11978@Kushana: nickm | 2007-01-15 18:54:25 -0500
...
Apparently, the OpenBSD linker thinks it knows C better than I do, and gets to call me names for having strcat and strcpy and sprintf in my code--whether I use them safely or not. All right, OpenBSD. You win... this round.
svn:r9360
2007-01-15 23:56:38 +00:00
Nick Mathewson
11ed4500de
r11975@Kushana: nickm | 2007-01-15 17:11:15 -0500
...
set or_conn->tls_error to 0 on non-error to avoid looking at stale errors.
svn:r9359
2007-01-15 22:11:21 +00:00
Nick Mathewson
db6f0f3617
r11973@Kushana: nickm | 2007-01-15 16:43:25 -0500
...
Answer questions from r9348.
svn:r9358
2007-01-15 21:44:59 +00:00
Nick Mathewson
23c18f1dc2
svn:r9357
2007-01-15 21:21:21 +00:00
Nick Mathewson
af857f2da5
r11967@Kushana: nickm | 2007-01-15 16:13:15 -0500
...
tidy up more whitespace issues
svn:r9356
2007-01-15 21:21:14 +00:00
Nick Mathewson
380f8983c7
r11966@Kushana: nickm | 2007-01-15 16:12:17 -0500
...
Tidy up ORCONN reason patch from Mike Perry. Changes: make some of the handling of TLS error codes less error prone. Enforce house style wrt spaces. Make it compile with --enable-gcc-warnings. Only set or_conn->tls_error in the case of an actual error. Add a changelog entry.
svn:r9355
2007-01-15 21:21:05 +00:00
Nick Mathewson
ead35ef944
r11957@Kushana: nickm | 2007-01-15 15:25:57 -0500
...
Patch from Mike Perry: Track reasons for OR connection failure; display them in control events. Needs review and revision.
svn:r9354
2007-01-15 21:13:37 +00:00
Roger Dingledine
37b5132ad8
Expire socks connections if they spend too long waiting for the
...
handshake to finish. Previously we would let them sit around for
days, if the connecting application didn't close them either.
Also take this opportunity to refactor a duplicate bit of circuituse.c.
And change the semantics of SocksTimeout slightly, but I think it'll
be ok.
svn:r9350
2007-01-15 09:09:03 +00:00
Roger Dingledine
a9c250837e
patch from edmanm to make "-nt-service" command-line work too
...
svn:r9349
2007-01-15 08:52:01 +00:00
Roger Dingledine
cf7069fca4
two more todo items, to make eventdns log messages less loud
...
svn:r9348
2007-01-15 08:40:50 +00:00
Andrew Lewman
930e12920d
Update copyright in config.c while I'm there. Update man page to
...
reflect all available options to tor binary.
svn:r9341
2007-01-13 05:09:09 +00:00
Nick Mathewson
c1b5f53679
r11938@Kushana: nickm | 2007-01-11 11:02:28 -0500
...
Check addresses for rfc953-saneness at exit too, and give a PROTOCOL_WARN when they fail. Also provide a mechanism to override this, so blossom can have its @@##$$^.whatever.exit hostnames if it wants.
svn:r9336
2007-01-11 16:02:39 +00:00
Nick Mathewson
3dfeaaaf6e
r11931@Kushana: nickm | 2007-01-11 09:12:49 -0500
...
Fix a crash bug in the presence of DNS hijacking.
svn:r9333
2007-01-11 14:13:13 +00:00
Nick Mathewson
0c77ae2fcb
r11930@Kushana: nickm | 2007-01-11 09:05:27 -0500
...
fix recently-introduced segfault when not running as a dirserver
svn:r9332
2007-01-11 14:13:04 +00:00
Roger Dingledine
7beb0fd5dd
Make the unit tests work again.
...
The foo_init() funcs need to happen before we call
options_act() and friends.
svn:r9331
2007-01-11 01:41:07 +00:00
Roger Dingledine
35bd6caa1a
Fix crash with "tor --list-fingerprint" (reported by seeess).
...
svn:r9328
2007-01-10 23:48:24 +00:00
Nick Mathewson
8835bb844e
r11922@Kushana: nickm | 2007-01-10 15:43:18 -0500
...
Clear untrusted networkstatuses after 10 days too. (This is not a terribly awful bug, since we would only ever retain 16 of them, but it still might be nice to backport.) Resolves part A of bug 372.
svn:r9324
2007-01-10 20:43:40 +00:00
Nick Mathewson
9937695598
r11919@Kushana: nickm | 2007-01-10 13:32:48 -0500
...
Add some defensive programming to eventdns.c in an attempt to catch possible memory stomping bugs.
svn:r9322
2007-01-10 19:49:21 +00:00
Nick Mathewson
ceefc1e9a7
r11914@dhcp-18-188-69-59: nickm | 2007-01-10 11:20:59 -0500
...
Base skew calculation on conn->timestamp_lastwritten, not on now.
svn:r9319
2007-01-10 16:33:40 +00:00
Roger Dingledine
da7f0b5366
bump to 0.1.2.6-alpha-dev so we're ready for tomorrow's
...
surprise release too
svn:r9314
2007-01-09 05:47:23 +00:00
Roger Dingledine
ca66074106
bump to 0.1.2.6-alpha
...
svn:r9311
2007-01-09 05:24:42 +00:00
Roger Dingledine
794fedb0ad
some cleanups. more probably remain, but hey, it's an alpha.
...
time to put out the bugfix release.
svn:r9309
2007-01-09 05:14:34 +00:00
Roger Dingledine
254005fc1b
apparently i think of comments with no whitespace around them as
...
"read this if you don't understand the code and want some help."
which is not the same as "hey, you think you understand this code,
but you don't."
svn:r9307
2007-01-09 00:57:36 +00:00
Roger Dingledine
1d8a4cb989
Fix an assert error introduced in 0.1.2.5-alpha: if a single TLS
...
connection handles more than 4 gigs in either direction, we assert.
svn:r9306
2007-01-09 00:50:50 +00:00
Roger Dingledine
c85ff4d6ab
Fix an assert error introduced in 0.1.2.5-alpha: if you're an
...
advertised exit node, somebody might try to exit from you when
you're bootstrapping and before you've built your descriptor yet.
svn:r9305
2007-01-09 00:37:13 +00:00
Nick Mathewson
5239602dbc
r11873@Kushana: nickm | 2007-01-06 02:32:18 -0500
...
Implement DNS-related status events.
svn:r9285
2007-01-06 07:34:07 +00:00
Nick Mathewson
bc14afe064
r11872@Kushana: nickm | 2007-01-06 02:14:12 -0500
...
Implement a control status event for bad libevent version/method combos. Warn that libevent <1.1 with select() is needlessly slow. Reply to comment.
svn:r9284
2007-01-06 07:34:02 +00:00
Nick Mathewson
03d6e98111
r11868@Kushana: nickm | 2007-01-06 01:32:55 -0500
...
Document how we set Guard a little better.
svn:r9283
2007-01-06 06:32:59 +00:00
Nick Mathewson
d6073cc7fa
r11864@Kushana: nickm | 2007-01-06 01:25:59 -0500
...
Fix an XXXX012 in connection.c: prevent overflows on unfeasibly-high-bandwidth servers on 32-bit architectures.
svn:r9282
2007-01-06 06:27:15 +00:00
Nick Mathewson
aa7b72c97d
r11863@Kushana: nickm | 2007-01-06 01:12:24 -0500
...
Fix computation of total_exit_bandwidth; this will cause exits not to get recommended as guards if the total exit bandwidth if they constitute less than a third of total available bandwidth. There may be problems here with flapping; lets see if they occur in practice.
svn:r9281
2007-01-06 06:26:53 +00:00
Nick Mathewson
336624ce8f
r11862@Kushana: nickm | 2007-01-06 01:05:15 -0500
...
Re-enable warning when we resolve an already resolved address. We only warn here now if the address is not a testing address. Also, refactor out a function to check whether an address is used for testing.
svn:r9280
2007-01-06 06:26:46 +00:00
Nick Mathewson
c8466c5919
r11824@Kushana: nickm | 2007-01-03 17:15:28 -0500
...
control-spec: upcase arguments in status events; note unimplemented events individually
r11825@Kushana: nickm | 2007-01-03 17:41:43 -0500
Implement EXTERNAL IP server status event.
r11826@Kushana: nickm | 2007-01-03 17:47:10 -0500
Implement BAD_SERVER_DESCRIPTOR server status event.
r11827@Kushana: nickm | 2007-01-03 18:01:56 -0500
Implement SOCKS_UNKNOWN_PROTOCOL and DANGEROUS_SOCKS client events.
r11828@Kushana: nickm | 2007-01-03 18:23:22 -0500
Implement BUG controller events. Also, flush ERR-level status events just like ERR-level log messages.
r11829@Kushana: nickm | 2007-01-03 23:37:27 -0500
Yet more status events: CLOCK_SKEW, GOOD/ACCEPTED_SERVER_DESCRIPTOR, {CHECKING_}REACHABILITY_{SUCCEEDED|FAILED}
r11833@Kushana: nickm | 2007-01-05 16:56:37 -0500
Note some unimplementedness in control-spec.txt
svn:r9279
2007-01-06 05:42:31 +00:00
Roger Dingledine
6b126ea040
bump to 0.1.2.5-alpha-dev
...
svn:r9278
2007-01-06 05:41:01 +00:00
Roger Dingledine
71ed0314f6
make tor-resolve -x work on intel-endian platforms too
...
svn:r9274
2007-01-06 04:48:34 +00:00
Nick Mathewson
135aed5670
r11850@Kushana: nickm | 2007-01-05 17:12:08 -0500
...
Look in netinet/in6.h header when looking for struct in6_addr. (Issue found by saeftl.)
svn:r9272
2007-01-05 22:12:15 +00:00
Roger Dingledine
48a9fe4bbd
be a bit less eager to reject v1 dir requests due to load
...
svn:r9271
2007-01-05 06:59:36 +00:00
Roger Dingledine
ee0d2d486d
fix a bug, defer a bug, bump to 0.1.2.5-alpha
...
svn:r9270
2007-01-05 06:30:31 +00:00
Roger Dingledine
658c09c06f
more progress and cleanups
...
svn:r9269
2007-01-05 06:03:10 +00:00
Roger Dingledine
466650aa14
when we added orport= to the dirserver line, we started
...
freeing the string in the middle. this was probably xiando's
crash bug.
svn:r9265
2007-01-05 01:23:34 +00:00
Roger Dingledine
7b88380690
Avoid a double-free when parsing malformed DirServer lines.
...
svn:r9264
2007-01-05 01:12:10 +00:00
Roger Dingledine
5e89bc9b4b
fix a bug i introduced in r9249; and more cleanups.
...
svn:r9263
2007-01-04 09:12:23 +00:00
Roger Dingledine
a66d86149b
avoid a crash-all-the-clients segfault if a rogue dir
...
authority leaves a "v" line blank.
svn:r9262
2007-01-04 06:36:43 +00:00
Roger Dingledine
da2ff14839
Set orport= for 4 of the 5 dir authorities; Fix getinfo ns/all; Fix seg
...
fault when starting a server without a fingerprint file present.
svn:r9261
2007-01-04 05:41:24 +00:00
Roger Dingledine
50f0e36094
man page entries for TunnelDirConns and PreferTunneledDirConns
...
and add a todo item for nick in case he gets bored :)
svn:r9260
2007-01-04 04:35:18 +00:00
Roger Dingledine
88c3c84bda
be slightly less eager to yell at a server for being unreachable
...
svn:r9259
2007-01-03 23:58:03 +00:00
Nick Mathewson
2963d4acc2
r11820@Kushana: nickm | 2007-01-03 14:54:05 -0500
...
Add (and specify) a BadDirectory flag to networkstatuses, so authorities can tell clients that some caches are broken. Also, implement an as-yet-unused function to estimate how many bytes will be sent on a directory connection.
svn:r9255
2007-01-03 19:58:00 +00:00
Nick Mathewson
931e555ef9
r11818@Kushana: nickm | 2007-01-03 08:29:17 -0500
...
Fix compile error with warnings enabled: connection_dir_supports_tunnels was redeclared as static.
svn:r9254
2007-01-03 13:29:30 +00:00
Roger Dingledine
50e36dc11b
more cleanups, including a shiny new XXX012
...
svn:r9250
2007-01-03 10:30:26 +00:00
Roger Dingledine
d677332a83
checkpoint as we add PreferTunneledDirConns config option
...
svn:r9249
2007-01-03 06:33:03 +00:00
Nick Mathewson
eebbfbc854
r11806@Kushana: nickm | 2007-01-03 00:12:21 -0500
...
Fix unit test broken by r9239.
svn:r9248
2007-01-03 05:12:26 +00:00
Roger Dingledine
9545bbf57f
- When the user uses bad syntax in the Log config line, stop
...
suggesting other bad syntax as a replacement.
svn:r9247
2007-01-03 03:56:17 +00:00
Roger Dingledine
7396b8eecf
interim tweaks
...
svn:r9246
2007-01-03 03:45:53 +00:00
Nick Mathewson
f5b984a36f
r11800@Kushana: nickm | 2007-01-02 16:46:45 -0500
...
Remove an XXXX012 for which the answer is "not really."
svn:r9244
2007-01-02 21:47:28 +00:00
Nick Mathewson
cbdd21cbf5
r11799@Kushana: nickm | 2007-01-02 16:38:34 -0500
...
Simplify and remove most of dirserv_orconn_tls_cone
svn:r9243
2007-01-02 21:47:21 +00:00
Nick Mathewson
2caeaf4e2f
r11787@Kushana: nickm | 2007-01-02 14:40:14 -0500
...
Stop polluting new descriptors with the defaults-to-1 "opt eventdns" entry.
svn:r9239
2007-01-02 20:08:03 +00:00
Nick Mathewson
75eca91459
r11786@Kushana: nickm | 2007-01-02 14:32:54 -0500
...
Add a comment about a possible refactoring in main.c
svn:r9238
2007-01-02 20:07:54 +00:00
Andrew Lewman
4f565b73ef
Fix formatting in eventdns.c. Remove the rest of the osx binary
...
uninstaller.
svn:r9235
2007-01-02 06:26:42 +00:00
Nick Mathewson
722a3ab544
r11784@Kushana: nickm | 2007-01-02 01:13:04 -0500
...
Spec-conformance on r9181: make "opt v" strings start with "Tor".
svn:r9233
2007-01-02 06:13:10 +00:00
Nick Mathewson
6ae3ba9b2d
r11777@Kushana: nickm | 2007-01-01 21:01:10 -0500
...
Fix an idiot bug in r9181: snprintf returns <0 on error, not !=0.
svn:r9232
2007-01-02 02:01:15 +00:00
Nick Mathewson
46092f8163
r11765@Kushana: nickm | 2006-12-29 16:04:22 -0500
...
Remove duplicated code in dirserv_get_networkstatus_v2; document dirserv_get_networkstatus_v2_fingerprints. Down to 13 XXXX012 items.
svn:r9220
2006-12-30 02:41:14 +00:00
Nick Mathewson
c54b7c4d56
r11761@Kushana: nickm | 2006-12-29 15:45:56 -0500
...
Another cleanup: expand_exit_policy_aliases was totally redundant with respect to router_parse_[private_]addr_policy_private.
svn:r9219
2006-12-29 20:50:24 +00:00
Nick Mathewson
7ee99ba342
r11759@Kushana: nickm | 2006-12-29 15:21:14 -0500
...
Actually, handle_getinfo_helper supports 552 results just fine: just leave *answer unset.
svn:r9217
2006-12-29 20:49:47 +00:00
Nick Mathewson
e3d5e4fcae
Okay, now descriptors seem to be buildable.
...
svn:r9216
2006-12-29 17:10:29 +00:00
Nick Mathewson
2741dd5741
r11755@Kushana: nickm | 2006-12-29 11:49:20 -0500
...
Calculate the length of policy strings correctly again.
svn:r9215
2006-12-29 16:49:33 +00:00
Nick Mathewson
a77bbe2346
r11753@Kushana: nickm | 2006-12-29 11:30:28 -0500
...
Fix flipped sign in compare: make descriptors buildable again.
svn:r9214
2006-12-29 16:31:37 +00:00
Nick Mathewson
6fbf17e7b0
r11749@Kushana: nickm | 2006-12-29 00:51:42 -0500
...
Remove dead code; make targets of addressmap commands/configs use AllowNonRFC953Hostnames
svn:r9211
2006-12-29 05:51:50 +00:00
Nick Mathewson
0e172d9f6e
r11745@Kushana: nickm | 2006-12-29 00:00:28 -0500
...
Close any directory connection on which we have received 10MB or more of data. This prevents a malicious directory cache from running us out of memory by spooling an infinite amount of data. (Not a terribly good attack, but hey, every one helps.)
svn:r9210
2006-12-29 05:07:25 +00:00
Nick Mathewson
8728e2826f
r11744@Kushana: nickm | 2006-12-28 23:43:53 -0500
...
Refactor connection_write_to_buf_zlib back into connection_write_to_buf. Hooray for dumping duplicate code.
svn:r9209
2006-12-29 05:07:04 +00:00
Nick Mathewson
26c0d6ec58
r11743@Kushana: nickm | 2006-12-28 23:13:21 -0500
...
Refactor _connection_controller_force_write back into conncetion_handle_write. Again, the line count goes down: groovy!
svn:r9208
2006-12-29 05:06:47 +00:00
Nick Mathewson
361998d0f3
r11741@Kushana: nickm | 2006-12-28 22:41:29 -0500
...
Count TLS bytes accurately: previously, we counted only the number of bytes read or transmitted via tls, not the number of extra bytes used to do so. This has been a lonstanding wart. The fix "Works for me".
svn:r9207
2006-12-29 03:42:46 +00:00
Nick Mathewson
7cfdac1bf6
r11737@Kushana: nickm | 2006-12-28 18:32:13 -0500
...
Remove some dead code; refactor some duplicated code.
svn:r9206
2006-12-29 02:49:12 +00:00
Nick Mathewson
b59573949e
r11736@Kushana: nickm | 2006-12-28 17:46:23 -0500
...
Mark a pile of XXXX comments as targetted for 0.1.2: some because they look important, some because they look easy.
svn:r9205
2006-12-29 02:47:51 +00:00
Nick Mathewson
0bbbf98be4
r11727@Kushana: nickm | 2006-12-28 16:27:17 -0500
...
If we only have a single nameserver, raise the threshold to decide that the nameserver is dead. (Another fumbling attempt to do something about bug 326.)
svn:r9203
2006-12-28 21:29:37 +00:00
Nick Mathewson
3996fd1d9d
r11726@Kushana: nickm | 2006-12-28 16:24:06 -0500
...
Expose a function from eventdns.c to set options without having to make a fake configuration file. Also, add more settable options
svn:r9202
2006-12-28 21:29:31 +00:00
Nick Mathewson
460a476efa
r11725@Kushana: nickm | 2006-12-28 14:44:56 -0500
...
Partial solution to 326: downgrade single-nameserver failures to INFO.
svn:r9201
2006-12-28 21:29:26 +00:00
Nick Mathewson
d9f1f3533d
r11724@Kushana: nickm | 2006-12-28 14:22:35 -0500
...
Refactor and unify my-ip-addr-changed logic. Make change in IP address or in nameservers reset and relaunch DNS hijacking tests.
svn:r9200
2006-12-28 21:29:20 +00:00
Nick Mathewson
e5f5b96ca6
r11723@Kushana: nickm | 2006-12-28 13:52:48 -0500
...
Fix bug 364: check for whether popular hostnames (curently google, yahoo, mit, and slashdot) are getting wildcarded. If they are, we are probably behind a DNS server that is useless: change our exit policy to reject *:*.
svn:r9199
2006-12-28 21:29:11 +00:00
Nick Mathewson
4cd302a1eb
r11722@Kushana: nickm | 2006-12-28 13:51:42 -0500
...
Add a helper function for case-insensitive search through a smartlist
svn:r9198
2006-12-28 21:29:03 +00:00
Nick Mathewson
e631b0a56f
r11719@Kushana: nickm | 2006-12-26 17:41:09 -0500
...
Add SOCKS5 and reverse lookup support to C verseion of tor-resolve
svn:r9195
2006-12-26 22:41:49 +00:00
Nick Mathewson
1df04d70f7
r11718@Kushana: nickm | 2006-12-26 16:57:44 -0500
...
Add client-side caching for reverse DNS.
svn:r9194
2006-12-26 22:41:43 +00:00
Nick Mathewson
58ae3cd648
r11713@Kushana: nickm | 2006-12-24 22:42:08 -0500
...
Better handling of internal addresses wrt X-Your-Address-Is (never believe them; never provide them.) Also, report something useful for X-Your-Address-Is with one-hop tunneled connections.
svn:r9191
2006-12-25 03:42:38 +00:00
Nick Mathewson
3ab84c5f48
r11711@Kushana: nickm | 2006-12-24 21:42:57 -0500
...
Stop counting 503s against the total number of failures allowed for a download.
svn:r9190
2006-12-25 02:47:37 +00:00
Nick Mathewson
a71a5d4bf2
r11706@Kushana: nickm | 2006-12-24 01:50:52 -0500
...
Fix 2 bugs in last patch. (VS has weird ideas about const, and I have weird ideas about block structure.)
svn:r9186
2006-12-24 06:50:57 +00:00
Nick Mathewson
bae366eff0
r11702@Kushana: nickm | 2006-12-24 01:31:59 -0500
...
Patch from Edmanm, slightly modified. Original change list:
- Support running the Tor service with a torrc not in the
same directory as tor.exe (Bug #356 ) and default to using the torrc
located in the %appdata%\Tor\ of the user who installed the service
- Removed the supposedly misleading error message mentioned in Bug #294
- Fixed some CloseHandle()s that should've been CloseServiceHandle()s
- Fixed some nt_service_foo() return values to be consistent
- Resolved some nt_service_foo() DOCDOCs
- Fixed one trivial typo that I happened to randomly notice
Changes:
- Make more comments into "imperative" house style.
- Remove special handling for "-f"; only use --options.
- Quote all options.
- Clean up whitespace
svn:r9185
2006-12-24 06:32:24 +00:00
Nick Mathewson
c12a1f1e3a
r11701@Kushana: nickm | 2006-12-24 01:24:39 -0500
...
fix warning on win32.
svn:r9184
2006-12-24 06:32:20 +00:00
Nick Mathewson
2e538d9918
r11694@Kushana: nickm | 2006-12-23 23:09:20 -0500
...
Add a version entry to networkstatus documents; have this entry get parsed and used to calculate whether begin_dir is supported.
svn:r9181
2006-12-24 04:09:48 +00:00
Nick Mathewson
339384238c
r11693@Kushana: nickm | 2006-12-23 22:42:11 -0500
...
Stop requiring the "opt" keyword before unrecognized directory items.
svn:r9180
2006-12-24 04:09:42 +00:00
Nick Mathewson
baac5389a1
r11690@Kushana: nickm | 2006-12-23 22:09:53 -0500
...
Hmm. Maybe I should have been compiling these before I checked them in.
svn:r9178
2006-12-24 03:09:58 +00:00
Nick Mathewson
d76b2a4ec0
r11688@Kushana: nickm | 2006-12-23 22:08:36 -0500
...
Fix "r may be used uninitialized" warning from last patch.
svn:r9177
2006-12-24 03:08:44 +00:00
Nick Mathewson
bf1014692f
r11686@Kushana: nickm | 2006-12-23 22:05:57 -0500
...
More changes wrt unnecessary disk writes.
svn:r9176
2006-12-24 03:06:03 +00:00
Nick Mathewson
f3fd5d9032
r11680@Kushana: nickm | 2006-12-23 21:45:05 -0500
...
Remove code to look for keys in their old locations: we havent stored them there since 0.0.7.2.
svn:r9175
2006-12-24 02:45:53 +00:00
Nick Mathewson
bba5a3533f
r11679@Kushana: nickm | 2006-12-23 21:38:41 -0500
...
Update the state file less often when AvoidDiskWrites is set.
svn:r9174
2006-12-24 02:45:46 +00:00
Nick Mathewson
9efdf6acc5
r11677@Kushana: nickm | 2006-12-23 21:17:54 -0500
...
Track when we get 503s from directory servers. Do not use directory servers that have given us a 503 until either an hour has passed, or we are are out of non-busy servers.
svn:r9172
2006-12-24 02:45:35 +00:00
Nick Mathewson
4d948281c3
r11676@Kushana: nickm | 2006-12-23 20:42:17 -0500
...
Add an orport option to dirserver lines so that clients can tell where to connect to open an encrypted tunnel to a dirserver even before they have its descriptor.
svn:r9171
2006-12-24 02:45:27 +00:00
Roger Dingledine
488b4726a7
reinstate the most important dead chickens for limiting
...
impact of directory writes now that we're write limiting.
a few more dead chickens remain.
svn:r9170
2006-12-23 08:48:16 +00:00
Nick Mathewson
94d7d8d88f
r11670@Kushana: nickm | 2006-12-21 12:23:55 -0500
...
Clean up logic in parse_port_range(); accept 0 on low end and 65536 on high end for people who are bad at math.
svn:r9169
2006-12-21 17:38:15 +00:00
Nick Mathewson
ca516311e3
r11668@Kushana: nickm | 2006-12-20 22:22:53 -0500
...
Fix bug found by Keith Skinner: Treat malformed max-ports in address ranges as an error, and dont ignore errors with min-ports even if a max-port is present.
svn:r9168
2006-12-21 03:22:59 +00:00
Nick Mathewson
bf74dcd855
r11658@Kushana: nickm | 2006-12-20 15:58:44 -0500
...
Remove long-deprecated log and accounting options.
svn:r9164
2006-12-20 21:02:10 +00:00
Nick Mathewson
2e1e919d65
r11657@Kushana: nickm | 2006-12-20 15:11:19 -0500
...
Fixes to check-docs script; add some docs; mark some options as deprecated in the online docs.
svn:r9163
2006-12-20 21:02:02 +00:00
Nick Mathewson
e9ad1650c0
r11651@Kushana: nickm | 2006-12-20 12:05:04 -0500
...
Add a maintainer script and a new make target "make check-docs" to get a quick dump of which options are undocumented where, and which documentation refers to nonexistent options.
svn:r9160
2006-12-20 17:05:48 +00:00
Roger Dingledine
00257212c7
Take out the '5 second' timeout from the connection retry
...
schedule. Now the first connect attempt will wait a full 10
seconds before switching to a new circuit. Perhaps this will help
a lot. Based on observations from Mike Perry.
svn:r9159
2006-12-20 09:43:28 +00:00
Roger Dingledine
858d7295e7
minor cleanups
...
svn:r9158
2006-12-20 09:25:58 +00:00
Nick Mathewson
baadf35c63
r11646@Kushana: nickm | 2006-12-19 14:40:38 -0500
...
Resolve bug 363: do not fall back to 127.0.0.1 when no nameservers are configured. Instead, have the admin fix resolv.conf or configure a nameserver.
svn:r9157
2006-12-19 19:49:03 +00:00
Nick Mathewson
bf6702cf8b
r11645@Kushana: nickm | 2006-12-19 14:22:36 -0500
...
Reject hostnames with invalid characters, in an attempt to catch more errors earlier. Add an option to disable this behavior.
svn:r9156
2006-12-19 19:48:58 +00:00
Nick Mathewson
280692d65f
r11643@Kushana: nickm | 2006-12-19 13:15:14 -0500
...
Stop recommmending exits as guards when the exit bandwidth is less than a third of the total bandwidth.
svn:r9154
2006-12-19 19:48:48 +00:00
Roger Dingledine
e66b6f0d50
Reject *:563 (NTTPS) in the default exit policy. We already reject
...
NNTP by default, so this seems like a sensible addition.
(suggested by bug 331)
svn:r9149
2006-12-18 08:25:34 +00:00
Roger Dingledine
ad5ce3c7ed
fix whitespace; add a todo item
...
svn:r9148
2006-12-18 08:24:22 +00:00
Nick Mathewson
973baa1673
r11630@Kushana: nickm | 2006-12-17 22:02:24 -0500
...
Add a typedef to (try to) make eventdns work on mingw. Man, I need a buildbot for this.
svn:r9147
2006-12-18 03:02:30 +00:00
Nick Mathewson
952b34d610
r11627@Kushana: nickm | 2006-12-17 11:37:39 -0500
...
Remove an artificial upper bound on expected bandwidth. More immediately, fix a VC warning.
svn:r9146
2006-12-17 16:37:46 +00:00
Roger Dingledine
b3b75a3bef
write-limiting fix: avoid a rare bug where we don't remember
...
that there's stuff on the outbuf we want to flush.
svn:r9142
2006-12-16 11:36:36 +00:00
Roger Dingledine
0cc7eaf302
remove some dead comments, and resolve some XXXs
...
svn:r9141
2006-12-16 11:34:12 +00:00
Roger Dingledine
f175aca3a8
and then revert half of r9138
...
svn:r9140
2006-12-16 07:04:26 +00:00
Nick Mathewson
80b8abf7be
r11618@Kushana: nickm | 2006-12-16 02:00:52 -0500
...
Make router_is_me work without calling router_rebuild_descriptor.
svn:r9139
2006-12-16 07:00:59 +00:00
Roger Dingledine
9cd8feb649
fix an infinite loop and a memory leak in r9131
...
svn:r9138
2006-12-16 06:56:58 +00:00
Nick Mathewson
31e09bb524
r11614@Kushana: nickm | 2006-12-15 17:39:42 -0500
...
Implement SETEVENTS GUARD. Needs review and testing.
svn:r9137
2006-12-15 22:40:20 +00:00
Nick Mathewson
251f007b75
r11609@Kushana: nickm | 2006-12-15 16:42:21 -0500
...
Implement GETINFO fingerprint.
svn:r9136
2006-12-15 21:51:24 +00:00
Roger Dingledine
ce51a1d349
a changelog for write limiting. also, disable the "advertise dirport
...
until we reach our max bandwidth if it's tiny" trick now that we
do the bandwidth self-test on boot.
svn:r9134
2006-12-15 21:39:35 +00:00
Nick Mathewson
f53a269928
r11598@Kushana: nickm | 2006-12-15 15:59:00 -0500
...
Add internal documentation for a bunch of configuration options. We should do something to keep this list, the canonical list, the tor.1 list, and the torrc.complete list in sync.
svn:r9133
2006-12-15 21:27:19 +00:00
Nick Mathewson
078aab810b
r11597@Kushana: nickm | 2006-12-15 15:49:27 -0500
...
Add a rudimentary line-wrapping function for use in dumping comments in config files.
svn:r9132
2006-12-15 21:26:23 +00:00
Nick Mathewson
ab2fc7bd62
r11596@Kushana: nickm | 2006-12-15 10:57:12 -0500
...
Mark some TODO items as done. Also, never include ourself in our family list.
svn:r9131
2006-12-15 21:26:15 +00:00
Roger Dingledine
bdf470c263
turn TunnelDirConns on by default.
...
that's what alpha releases are for, right?
svn:r9129
2006-12-15 21:06:21 +00:00
Roger Dingledine
c4ed331d8d
oh, and catch the other instance we should fix
...
svn:r9122
2006-12-15 08:14:32 +00:00
Roger Dingledine
0bc0688668
if we rotate our onion key, publish a new descriptor, and
...
die soon after, we want to stick with that onion key when
we restart.
svn:r9121
2006-12-15 07:58:31 +00:00
Nick Mathewson
38bd6837db
r11588@Kushana: nickm | 2006-12-15 02:04:32 -0500
...
Add a LastRotatedOnionKey variable to the state file, so we can rotate onion keys a week after they change even if we never stay up for a whole week at a time. Should fix bug 368.
svn:r9120
2006-12-15 07:04:37 +00:00
Roger Dingledine
2ae9615a0b
take the broken obsolete url out again.
...
seriously, this line should stay out.
how can we make this happen?
svn:r9119
2006-12-15 06:22:52 +00:00
Nick Mathewson
62f711fcf3
r11585@Kushana: nickm | 2006-12-15 01:11:49 -0500
...
Tabify eventdns so that it matches libevent house style.
svn:r9118
2006-12-15 06:12:14 +00:00
Nick Mathewson
b16aa6412e
r11584@Kushana: nickm | 2006-12-15 01:10:45 -0500
...
Try to reconcile (except for whitespace) eventdns with version in libevent, so it is easier for me to send merges. These changes should be cosmetic. (Ha!)
svn:r9117
2006-12-15 06:12:01 +00:00
Nick Mathewson
309c579452
r11581@Kushana: nickm | 2006-12-15 00:12:24 -0500
...
Make PIDFile work on windows. Reported by Arrakis.
svn:r9116
2006-12-15 05:12:52 +00:00
Nick Mathewson
fdb10ff0b5
r11580@Kushana: nickm | 2006-12-15 00:09:46 -0500
...
Resolve bug 369: Check for integer underflow when printing "bytes left" accounting numbers. Also fix a copyright date that I noticed while reading the bug. Also make a buffer big enough that strings will not get truncated. All are backport candidates.
svn:r9115
2006-12-15 05:12:42 +00:00
Roger Dingledine
c44dd3870e
clarify our use of local time vs GMT
...
svn:r9109
2006-12-14 23:39:14 +00:00
Roger Dingledine
30e4f4f6ce
when we're doing a write split over the end of a circular
...
buffer, make sure our tls_get_forced_write_size doesn't
make it write whatever's after the buffer.
this hasn't triggered yet, but it would be rare, so let's
leave it in.
svn:r9107
2006-12-14 03:26:42 +00:00
Nick Mathewson
c9c8072bd3
r11569@Kushana: nickm | 2006-12-13 17:59:58 -0500
...
fix last fix
svn:r9106
2006-12-13 23:00:05 +00:00
Nick Mathewson
43e06eba8b
r11566@Kushana: nickm | 2006-12-13 17:46:24 -0500
...
Try to fix an assert failure in new write limiting code: make buffers.c aware of previous "forced" write sizes from tortls.
svn:r9105
2006-12-13 22:46:42 +00:00
Roger Dingledine
5cce710e2b
Some more documentation and specs for CONNECT_DIR and BEGIN_DIR.
...
Demand that BEGIN_DIR cells have an empty payload.
svn:r9104
2006-12-13 22:42:52 +00:00
Roger Dingledine
04409f202d
reenable write limiting. nick finally convinced me this was
...
a smart move.
more todo sub-items remain for it.
svn:r9101
2006-12-13 07:08:36 +00:00
Roger Dingledine
97c83a4c09
finish enabling begin-dir cells. require one-hop circs for
...
socks-command-connect-dir streams, so we don't open new anonymity
questions.
svn:r9099
2006-12-13 02:49:45 +00:00
Roger Dingledine
0dbf725927
Infrastructure to test BEGIN_DIR cells.
...
New socks command CONNECT_DIR. New config option TunnelDirConns that
builds a circ ending at the directory server and delivers a BEGIN_DIR
cell if it's running 0.1.2.2-alpha or later. We still need to make
one-hop circs when appropriate, while making other conns avoid them.
svn:r9098
2006-12-13 00:28:56 +00:00
Roger Dingledine
f5164ba61d
remove an XXXX that asked to get removed
...
svn:r9097
2006-12-13 00:05:28 +00:00
Roger Dingledine
477438e6c7
a better fix. puts r8446 to bed.
...
svn:r9096
2006-12-12 21:09:30 +00:00
Roger Dingledine
1efd377428
Fix a bug in 0.1.2.2-alpha that prevented clients from asking
...
to resolve an address at a given exit node even when they ask for
it by name.
svn:r9095
2006-12-12 20:23:17 +00:00
Roger Dingledine
7217f3ca47
couldn't handle leaving this typo in
...
svn:r9094
2006-12-12 20:20:48 +00:00
Roger Dingledine
ee144598c8
minor cleanups and notes
...
svn:r9093
2006-12-12 20:19:54 +00:00
Nick Mathewson
9fa707f5d3
r11552@Kushana: nickm | 2006-12-12 13:34:13 -0500
...
fix a signed/unsigned comparison in eventdns.c
svn:r9092
2006-12-12 18:34:22 +00:00
Nick Mathewson
a3a00df69d
r11548@Kushana: nickm | 2006-12-12 00:44:51 -0500
...
Merge whitespace and other changes from libevent
svn:r9090
2006-12-12 05:45:19 +00:00
Nick Mathewson
494e45482a
r11536@Kushana: nickm | 2006-12-11 22:48:21 -0500
...
Add ipv6 functionality to evdns.
svn:r9089
2006-12-12 03:48:46 +00:00
Nick Mathewson
35d92f8245
r11498@Kushana: nickm | 2006-12-11 21:40:24 -0500
...
Document all structures and (non-exported) functions. External documentation will probably wind up being a manpage, hopefully written by somebody else.
svn:r9087
2006-12-12 02:57:02 +00:00
Nick Mathewson
097aec8e9d
r11497@Kushana: nickm | 2006-12-11 21:17:45 -0500
...
Rename nameserver functions: every one should now have "server" in the name.
svn:r9086
2006-12-12 02:56:54 +00:00
Nick Mathewson
707429e9a3
r11496@Kushana: nickm | 2006-12-11 19:39:37 -0500
...
Clean up XXXX comments in evdns code. Make server_ports actually go away when their refcnt reaches zero.
svn:r9085
2006-12-12 02:56:47 +00:00
Nick Mathewson
d22deb61d6
r11495@Kushana: nickm | 2006-12-11 19:11:14 -0500
...
More evdns: tab fixes. Dont make users worry about flags. Set truncated flag correctly when generating responses, rather than just bailing out.
svn:r9084
2006-12-12 02:56:41 +00:00
Nick Mathewson
abc1304aef
r11494@Kushana: nickm | 2006-12-11 14:50:20 -0500
...
Export DNS types and classes in eventdns.h so that server code can use them.
svn:r9083
2006-12-12 02:56:35 +00:00
Nick Mathewson
fc125b1ef4
r11493@Kushana: nickm | 2006-12-11 14:28:42 -0500
...
Oops; apparently DNS replies are supposed to include the questions. Revise "add_ptr_reply" to accept an inaddr_arpa name instead of just the sockaddr_in. Also, add a "-servertest" function to the test code to see whether the DNS server logic is working.
svn:r9082
2006-12-12 02:56:28 +00:00
Nick Mathewson
e53bca15e7
r11492@Kushana: nickm | 2006-12-11 12:30:23 -0500
...
Implement dns server reply retry logic.
svn:r9081
2006-12-12 02:56:23 +00:00
Nick Mathewson
c58d9494df
r11491@Kushana: nickm | 2006-12-11 12:12:57 -0500
...
More DNS server hacking: everything except testing, and retries, and documentation, and Tor integration.
svn:r9080
2006-12-12 02:56:20 +00:00
Nick Mathewson
991308fac9
svn:r9079
2006-12-12 02:56:17 +00:00
Nick Mathewson
ff029a635d
svn:r9077
2006-12-12 02:54:48 +00:00
Nick Mathewson
e190acf780
r9254@Kushana: nickm | 2006-10-17 17:23:36 -0400
...
Implement dns label compression. Clients do not need this much; dns servers definitely do.
svn:r9073
2006-12-12 02:50:17 +00:00
Nick Mathewson
e9d67b1162
r9099@Kushana: nickm | 2006-10-05 17:42:55 -0400
...
start fleshing out some logic to build server support into eventdns. Still needs work and testing.
svn:r9068
2006-12-12 02:49:45 +00:00
Roger Dingledine
8cf8b8087a
when we decide not to mmap, because the file is empty or isn't
...
there at all, don't yell so loud.
svn:r9065
2006-12-11 04:21:10 +00:00
Roger Dingledine
ea93289590
fix another bug in r9052, pointed out by robert hogan
...
svn:r9063
2006-12-10 17:30:33 +00:00
Roger Dingledine
e206d22297
some more cleanups and a bugfix on r9052
...
svn:r9062
2006-12-10 08:04:50 +00:00
Roger Dingledine
733882315d
resolve a buffer overflow / crash from r9051
...
svn:r9061
2006-12-10 04:50:33 +00:00
Roger Dingledine
f7319a0b6d
correction and cleanups on r9047
...
svn:r9060
2006-12-09 19:40:16 +00:00
Roger Dingledine
29099a98c2
fix xiando's bug -- we were reporting stuff about hibernation
...
even though it wasn't enabled.
svn:r9055
2006-12-09 02:55:40 +00:00
Nick Mathewson
81be0ad1e5
r11486@Kushana: nickm | 2006-12-08 00:58:47 -0500
...
Fix a longstanding bug in eventdns related to timeouts: The timeout count was never actually reset to 0. Argh. Now we reset it to zero after we get a successful request, or after we notice that a nameserver is back up, or after we decide the nameserver is down because of timeouts. This may fix bug 326.
svn:r9054
2006-12-08 05:59:21 +00:00
Nick Mathewson
cf04e1e6e7
r11479@Kushana: nickm | 2006-12-07 23:38:54 -0500
...
Refactor GETINFO into a table-driven dispatch, as suggested by arma. My brain hurts.
svn:r9052
2006-12-08 04:39:13 +00:00
Nick Mathewson
1567e13dc8
r11475@Kushana: nickm | 2006-12-07 20:49:21 -0500
...
Make GETINFO dir/status/... work even when we are not a directory. Needs a little cleanup. Closes bug 263.
svn:r9051
2006-12-08 01:50:02 +00:00
Roger Dingledine
566543a4f8
more changes on r9041
...
svn:r9049
2006-12-07 20:14:29 +00:00
Nick Mathewson
b4a90ca8a3
r11469@Kushana: nickm | 2006-12-07 15:11:04 -0500
...
Round stored/transmitted values for bandwidth usage. This might make some attacks work less well. This might well be voodoo, but it gives me a warm fuzzy feeling.
svn:r9048
2006-12-07 20:11:36 +00:00
Nick Mathewson
7c79495137
r11468@Kushana: nickm | 2006-12-07 14:56:57 -0500
...
Revise logic used to flush state to disk. Now, we try to batch non-urgent changes so that we do not do too many writes, and we save very-non-urgent changes every once in a rare while, and we never save more than once per second.
svn:r9047
2006-12-07 20:11:30 +00:00
Nick Mathewson
c304a10fd3
r11467@Kushana: nickm | 2006-12-07 14:38:54 -0500
...
Whitespace cleanup
svn:r9046
2006-12-07 20:11:24 +00:00
Nick Mathewson
6c8075d8a0
r11462@Kushana: nickm | 2006-12-07 13:42:21 -0500
...
Make bandwidth accounting information get stored to the state file as well as bw_accounting. Read from the state file if it is more recent than bw_accounting, or if bw_accounting is not there.
svn:r9044
2006-12-07 18:57:37 +00:00
Nick Mathewson
63e4cfbeb6
r11461@Kushana: nickm | 2006-12-07 13:16:45 -0500
...
Change logging format of state file to only include non-default values. Adjust clients to never store bandwidth history in the state file. (Possible backport candidate.)
svn:r9043
2006-12-07 18:57:29 +00:00