- Sep 23, 2009
-
-
Nick Mathewson authored
"Tinytest" is a minimalist C unit testing framework I wrote for Libevent. It supports some generally useful features, like being able to run separate unit tests in their own processes. I tried to do the refactoring to change test.c as little as possible. Thus, we mostly don't call the tinytest macros directly. Instead, the test.h header is now a wrapper on tinytest.h to make our existing test_foo() macros work. The next step(s) here will be: - To break test.c into separate files, each with its own test group. - To look into which things we can test - To refactor the more fiddly tests to use the tinytest macros directly and/or run forked. - To see about writing unit tests for things we couldn't previously test without forking.
-
Nick Mathewson authored
-
Roger Dingledine authored
-
Roger Dingledine authored
If the networkstatus consensus tells us that we should use a negative circuit package window, ignore it. Otherwise we'll believe it and then trigger an assert. Also, change the interface for networkstatus_get_param() so we don't have to lookup the consensus beforehand.
-
- Sep 22, 2009
-
-
Nick Mathewson authored
-
Mike Perry authored
Don't pass in a quantile that is too high during pretimeout calcualtion.
-
- Sep 21, 2009
-
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Peter Palfrader authored
If we have a debian/micro-revision.i, replace the one in src/or with our copy so that this will be the revision that ends up in the binary. This is an informational only version string, but it'd be kinda nice if it was (more) accurate nonetheless. Of course this won't help if people manually patch around but it's still preferable to claiming we are exactly upstream's source. If we are building directly out of a git tree, update debian/micro-revision.i in the clean target.
-
Peter Palfrader authored
The files src/common/common_sha1.i src/or/or_sha1.i get changed during the build - they contain the checksums of the individual files that end up in the binary. Of couse changes only end up in the debian diff.gz after building a second time in the same directory. So, remove those files in clean to get both a cleaner diff.gz and idempotent builds.
-
Peter Palfrader authored
* debian-merge: (95 commits) New upstream version: 0.2.2.2-alpha downgrade a log severity, since this event has been known Update to the "September 4 2009" ip-to-country file. bump to 0.2.2.2-alpha Revert "Teach connection_ap_can_use_exit about Exclude*Nodes" fix grammar / add changelog for the torify commit Fix compile on Snow Leopard Fix build warnings on OSX 10.5.8 Change the condition on the nonlive timeout counting. Add a couple of time helper functions. Fix typos and comments, plus two bugs Implement and document new network liveness algorithm. Fix some precision-related asserts in unit tests. replace contrib/auto-naming with a readme saying where it went clarify our rules for assigning the Named flag disable the end of circuitbuildtimeout units tests draw in a lot of 0.2.1.20 changelog items into 0.2.2.2-alpha Fix compile on freebsd Let our config abbreviations rewrite more than once a mish-mash of stuff in my sandbox ...
-
Peter Palfrader authored
-
Peter Palfrader authored
* commit 'tor-0.2.2.2-alpha': (94 commits) downgrade a log severity, since this event has been known Update to the "September 4 2009" ip-to-country file. bump to 0.2.2.2-alpha Revert "Teach connection_ap_can_use_exit about Exclude*Nodes" fix grammar / add changelog for the torify commit Fix compile on Snow Leopard Fix build warnings on OSX 10.5.8 Change the condition on the nonlive timeout counting. Add a couple of time helper functions. Fix typos and comments, plus two bugs Implement and document new network liveness algorithm. Fix some precision-related asserts in unit tests. replace contrib/auto-naming with a readme saying where it went clarify our rules for assigning the Named flag disable the end of circuitbuildtimeout units tests draw in a lot of 0.2.1.20 changelog items into 0.2.2.2-alpha Fix compile on freebsd Let our config abbreviations rewrite more than once a mish-mash of stuff in my sandbox give proposal 151 a changelog and other touchups ...
-
Roger Dingledine authored
to happen and there's nothing the user can do about it
-
Roger Dingledine authored
-
Roger Dingledine authored
-
Roger Dingledine authored
-
Roger Dingledine authored
This reverts commit dc322931. We're going to do this more thoroughly in 0.2.2.x, and not in maint-0.2.1.
-
Roger Dingledine authored
-
-
Roger Dingledine authored
-
Nick Mathewson authored
-
Mike Perry authored
Try to clarify things in the comment too.
-
Mike Perry authored
Also add rounding support to tv_mdiff().
-
- Sep 20, 2009
-
-
Roger Dingledine authored
A) We were considering a circuit had timed out in the special cases where we close rendezvous circuits because the final rendezvous circuit couldn't be built in time. B) We were looking at the wrong timestamp_created when considering a timeout.
-
Mike Perry authored
Based on irc discussion with arma.
-
Mike Perry authored
Mostly by storing the timeout as milliseconds and not seconds internally.
-
- Sep 19, 2009
-
-
Roger Dingledine authored
-
- Sep 18, 2009
-
-
Roger Dingledine authored
-
Roger Dingledine authored
until mike figures out some other way to make them pass reliably
-
Roger Dingledine authored
-
Sebastian Hahn authored
-
Roger Dingledine authored
-
- Sep 17, 2009
-
-
Roger Dingledine authored
-
Roger Dingledine authored
-
Roger Dingledine authored
Don't discard all circuits every MaxCircuitDirtiness, because the user might legitimately have set that to a very lower number. Also don't use up all of our idle circuits with testing circuits, since that defeats the point of preemptive circuits.
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
[Do not take conflicting change to rendclient.c]
-