Nick Mathewson
9bcea4a8ef
Merge commit 'sebastian/misc-reason'
2010-08-15 21:27:32 -04:00
Nick Mathewson
5757f47fc3
Make unit tests work when tests get run in subprocesses.
...
Apparently the way we handled cleaning up temporary directories with
atexit() meant that when the child process exited, it would remove the
temporary directory, thus making other tests in the main process fail.
2010-08-15 21:20:19 -04:00
Nick Mathewson
8394c70204
Rename rep_hist_exit_stats_history in test.c too
2010-08-15 20:55:24 -04:00
Nick Mathewson
c370ee7aa7
Add a changes file for Karsten's stats-tests branch
2010-08-15 20:54:57 -04:00
Nick Mathewson
8351881b2e
Merge commit 'karsten/stats-tests'
2010-08-15 20:49:37 -04:00
Nick Mathewson
a5d8ed7990
Merge commit 'karsten/stats-manpage'
2010-08-15 20:23:50 -04:00
Karsten Loesing
8dadc7a7aa
Update man page, now that *Statistics can be changed while Tor is running.
2010-08-15 15:51:31 +02:00
Karsten Loesing
0e8513d4c6
Run test_stats in a subprocess.
2010-08-15 14:30:37 +02:00
Karsten Loesing
69545efbaf
Give rep_hist_exit_stats_history() a better name.
2010-08-15 14:15:58 +02:00
Karsten Loesing
3d77c67d93
Fix memory leak spotted by Nick.
2010-08-15 13:34:57 +02:00
Roger Dingledine
8d588e7b1a
reinit per-conn token buckets on config or consensus change
2010-08-15 04:01:42 -04:00
Roger Dingledine
2bc1842aaa
factor out rate/burst setting. no actual changes.
2010-08-15 02:27:07 -04:00
Roger Dingledine
a207d9db4c
fix another piece of 1741
2010-08-14 04:22:08 -04:00
Roger Dingledine
e50857b67f
changes entry for bug 1741
2010-08-13 20:50:51 -04:00
Mike Perry
5b0c0e1f89
Add check for CIRCUIT_PURPOSE_S_REND_JOINED.
...
These circuits stick around much longer than others on the server side for
performance reasons. Their lifetime is controlled by the client.
2010-08-13 20:46:33 -04:00
Roger Dingledine
b1a5888553
fix a memory leak introduced by df1ef2f0f0
2010-08-13 17:30:50 -04:00
Roger Dingledine
a1686d867e
fold in the makefile.am changes entry
2010-08-13 17:19:04 -04:00
Roger Dingledine
1ac1f048ef
minor formatting / comment fixes
2010-08-13 17:18:45 -04:00
Sebastian Hahn
2d8db2aacb
Fix url in rend-spec
...
Fixes bug 1822
2010-08-12 02:40:19 +02:00
Chris Ball
16970d83cc
doc/HACKING: Explain how to find when a given change was introduced
2010-08-12 02:38:58 +02:00
Sebastian Hahn
28962ecae8
Fix a typo in control-spec
2010-08-12 02:38:58 +02:00
Karsten Loesing
acd25558b8
Refactor exit port statistics code and add unit tests.
2010-08-11 16:19:54 +02:00
Nick Mathewson
1cf19b5046
Merge branch 'build-wo-asciidoc-on-bsd'
2010-08-11 09:42:05 -04:00
Linus Nordberg
5b69cf85fa
Fix changes/ file for bug #1773 .
2010-08-11 09:41:51 -04:00
Linus Nordberg
0b96abe74f
Bug #1773 : Revert bad fix ( 4ef609b8
) and do it properly.
...
* doc/Makefile.am: Move $(VAR:MOD) expansions inside "if USE_ASCIIDOC".
* doc/Makefile.am: Use proper variable name for text input files.
* doc/Makefile.am: Initialize vars to empty when !USE_ASCIIDOC.
2010-08-11 09:41:34 -04:00
Roger Dingledine
863b6c439e
changelog entry for f060b18e6c
2010-08-11 02:11:05 -04:00
Roger Dingledine
267c976405
fold in most of the changes/foo files
2010-08-11 01:51:41 -04:00
Roger Dingledine
45c6b5de17
tiny change i found in my other sandbox
2010-08-11 01:48:29 -04:00
Roger Dingledine
0087a37bed
tiny changes i found in my sandbox
2010-08-09 18:50:49 -04:00
Nick Mathewson
f060b18e6c
Fix a rare bug in rend_fn tests when the randomly generated port is 0
...
Since the rend code doesn't like the port to be 0, we shouldn't generate
the port by declaring crypto_rand_int(65536); instead we should
say crypto_rand_int(65535)+1.
Diagnosed by Matt Edman; fixes bug 1808.
2010-08-07 14:31:58 -04:00
Nick Mathewson
93edf0cb6c
Merge commit 'karsten/stats_v4_rebased'
2010-08-06 10:46:59 -04:00
Karsten Loesing
83626ec91c
Move exit-stats code to the end of rephist.c.
2010-08-05 13:05:33 +02:00
Sebastian Hahn
d365bc965d
Only delay counting bridge users if we were a relay before
2010-08-05 13:05:32 +02:00
Karsten Loesing
166c2f4d92
Allow enabling or disabling *Statistics while Tor is running.
...
With this patch we stop scheduling when we should write statistics using a
single timestamp in run_scheduled_events(). Instead, we remember when a
statistics interval starts separately for each statistic type in geoip.c
and rephist.c. Every time run_scheduled_events() tries to write stats to
disk, it learns when it should schedule the next such attempt.
This patch also enables all statistics to be stopped and restarted at a
later time.
This patch comes with a few refactorings, some of which were not easily
doable without the patch.
2010-08-05 13:05:25 +02:00
Nick Mathewson
de7ed2fd7a
Merge commit 'origin/maint-0.2.1'
...
Conflicts:
debian/changelog
debian/control
debian/patches/03_tor_manpage_in_section_8.dpatch
debian/patches/06_add_compile_time_defaults.dpatch
debian/rules
2010-08-04 12:37:30 -04:00
Nick Mathewson
e7d2a9b6c4
Remove the debian directory from the main git repository
...
Once upon a time it made sense to keep all the Debian files in the
main Tor distribution, since repeatedly merging them back in was hard.
Now that we're on git, that's no longer so.
Peter's debian repository at debian/tor.git on our git server has the
most recent version of the tor-on-debian packaging stuff, and the versions
in our own repository have gotten out of date.
Resolves bug #1735 .
2010-08-04 12:21:48 -04:00
Sebastian Hahn
161b275028
Retry streams that ended with NOROUTE error
...
Also add the NOROUTE reason to control-spec.
2010-08-04 00:51:39 +02:00
Nick Mathewson
cafd868a78
Clarify that implementation is for discussion of implementation
2010-08-03 14:25:07 -04:00
Nick Mathewson
d5abd0b43e
Add proposal 174 from Ian Goldberg: Optimistic Data for Tor: Server Side
2010-08-03 14:23:51 -04:00
Nick Mathewson
9d317e9bb4
Bless two proposals from Damian Johnson as 172 and 173.
...
(Leaving a gap for the proposal Jake blessed as 171.)
2010-08-03 13:23:34 -04:00
Nick Mathewson
51377ae1bb
Merge commit 'sebastian/mlockall'
2010-08-03 10:50:18 -04:00
Nick Mathewson
3556d27085
Merge commit 'erinn/rpm-devel'
2010-08-03 10:48:30 -04:00
Sebastian Hahn
150ed553df
Introduce END_STREAM_REASON_NOROUTE
2010-08-03 16:46:28 +02:00
Nick Mathewson
b4e2d0607d
Merge commit 'sebastian/distcheck'
2010-08-03 10:07:57 -04:00
Nick Mathewson
05fa0a3ef6
Merge commit 'sebastian/rend-spec'
2010-08-03 09:16:24 -04:00
Nick Mathewson
ba24acbf1f
Merge commit 'karsten/dir-spec-fix'
2010-08-03 09:14:38 -04:00
Nick Mathewson
6d8b932659
Merge commit 'origin/maint-0.2.1'
2010-08-03 09:13:17 -04:00
Sebastian Hahn
8557f64220
Clarify that rend cookies shouldn't be reused
2010-08-03 14:48:17 +02:00
Sebastian Hahn
b8aa14a39b
Handle EHOSTUNREACH in errno_to_stream_end_reason()
...
We used to not recognize it and returned END_STREAM_REASON_MISC.
Instead, return END_STREAM_REASON_INTERNAL.
2010-08-03 14:03:36 +02:00
Karsten Loesing
b3b3c919c6
Fix copy-and-paste fail in dir-spec.txt.
2010-08-03 13:12:06 +02:00