]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
15 years agomike needs DEFAULT_ROUTE_LEN in other files
Roger Dingledine [Wed, 21 Jul 2010 13:30:26 +0000 (09:30 -0400)] 
mike needs DEFAULT_ROUTE_LEN in other files

15 years agopartial changelog for 0.2.2.15-alpha
Roger Dingledine [Wed, 21 Jul 2010 13:28:34 +0000 (09:28 -0400)] 
partial changelog for 0.2.2.15-alpha

15 years agowhitespace fix
Roger Dingledine [Wed, 21 Jul 2010 13:24:14 +0000 (09:24 -0400)] 
whitespace fix

15 years agoAdd missing changes file for d461799f0
Nick Mathewson [Mon, 19 Jul 2010 22:34:05 +0000 (00:34 +0200)] 
Add missing changes file for d461799f0

15 years agonaked constants are bad
Roger Dingledine [Tue, 20 Jul 2010 12:07:44 +0000 (08:07 -0400)] 
naked constants are bad

15 years agoMerge branch 'bug1699'
Nick Mathewson [Mon, 19 Jul 2010 09:13:53 +0000 (11:13 +0200)] 
Merge branch 'bug1699'

15 years agoFix getinfo_helper_networkstatus to return 0 on question-not-known
Nick Mathewson [Sun, 18 Jul 2010 15:13:25 +0000 (17:13 +0200)] 
Fix getinfo_helper_networkstatus to return 0 on question-not-known

It erroneously returned -1 instead, which made it say "Internal error"
rather than "Unrecognized key."

15 years agoMake the controller act more usefully when GETINFO fails
Nick Mathewson [Sun, 18 Jul 2010 15:05:58 +0000 (17:05 +0200)] 
Make the controller act more usefully when GETINFO fails

Right now it says "552 internal error" because there's no way for
getinfo_helper_*() countries to specify an error message.  This
patch changes the getinfo_helper_*() interface, and makes most of the
getinfo helpers give useful error messages in response to failures.

This should prevent recurrences of bug 1699, where a missing GeoIPFile
line in the torrc made GETINFO ip-to-county/* fail in a "not obvious
how to fix" way.

15 years agoAlter how guard flags are chosen.
Mike Perry [Mon, 12 Jul 2010 00:51:44 +0000 (17:51 -0700)] 
Alter how guard flags are chosen.

V3 authorities no longer decide not to vote on Guard+Exit. The bandwidth
weights should take care of this now.

Also, lower the max threshold for WFU to 0.98, to allow more nodes to become
guards.

15 years agoprint right controller purpose string for measure-timeout circs
Roger Dingledine [Thu, 15 Jul 2010 01:06:49 +0000 (21:06 -0400)] 
print right controller purpose string for measure-timeout circs

15 years agofetching a directory on sighup is years out of date
Roger Dingledine [Wed, 14 Jul 2010 17:48:09 +0000 (13:48 -0400)] 
fetching a directory on sighup is years out of date

15 years agoNo dirport should mean no hsdir flag (bug 1693)
Roger Dingledine [Wed, 14 Jul 2010 17:20:57 +0000 (13:20 -0400)] 
No dirport should mean no hsdir flag (bug 1693)

15 years ago0.2.2.14-alpha blurb
Roger Dingledine [Tue, 13 Jul 2010 19:50:24 +0000 (15:50 -0400)] 
0.2.2.14-alpha blurb

15 years agobump to 0.2.2.14-alpha-dev
Roger Dingledine [Tue, 13 Jul 2010 19:48:03 +0000 (15:48 -0400)] 
bump to 0.2.2.14-alpha-dev

15 years agobump to 0.2.2.14-alpha tor-0.2.2.14-alpha
Roger Dingledine [Tue, 13 Jul 2010 01:39:59 +0000 (21:39 -0400)] 
bump to 0.2.2.14-alpha

15 years agoguh. 'git commit' did not do what i expect.
Roger Dingledine [Mon, 12 Jul 2010 20:46:28 +0000 (16:46 -0400)] 
guh. 'git commit' did not do what i expect.

15 years agoi'm going to tag 0.2.2.14-alpha tonight
Roger Dingledine [Mon, 12 Jul 2010 20:43:46 +0000 (16:43 -0400)] 
i'm going to tag 0.2.2.14-alpha tonight

15 years agoRename log.h to torlog.h
Nick Mathewson [Sat, 10 Jul 2010 01:52:20 +0000 (21:52 -0400)] 
Rename log.h to torlog.h

This should make us conflict less with system files named "log.h".
Yes, we shouldn't have been conflicting with those anyway, but some
people's compilers act very oddly.

The actual change was done with one "git mv", by editing
Makefile.am, and running
   find . -name '*.[ch]' | xargs perl -i -pe 'if (/^#include.*\Wlog.h/) {s/log.h/torlog.h/; }'

15 years agofold in the latest changes
Roger Dingledine [Fri, 9 Jul 2010 18:07:54 +0000 (14:07 -0400)] 
fold in the latest changes

15 years agoRemove TODO items that are either done or moved to the tracker
Nick Mathewson [Tue, 6 Jul 2010 22:10:53 +0000 (18:10 -0400)] 
Remove TODO items that are either done or moved to the tracker

15 years agoMore gracefully handle corrupt state files.
Mike Perry [Tue, 6 Jul 2010 19:08:13 +0000 (12:08 -0700)] 
More gracefully handle corrupt state files.

Save a backup if we get odd circuitbuildtimes and other state info.

In the case of circuit build times, we no longer assert, and reset our state.

15 years agoFix unittest failure in bug 1660.
Mike Perry [Tue, 6 Jul 2010 15:49:50 +0000 (08:49 -0700)] 
Fix unittest failure in bug 1660.

We now record large times as abandoned, to prevent a filter step from
happening and skewing our results.

Also, issue a warn for a rare case that can happen for funky values of Xm or
too many abandoned circuits. Can happen (very rarely) during unit tests, but
should not be possble during live operation, due to network liveness filters
and discard logic.

15 years agoMake directory mirrors report non-zero dirreq-v[23]-shares again.
Karsten Loesing [Mon, 21 Jun 2010 08:13:17 +0000 (10:13 +0200)] 
Make directory mirrors report non-zero dirreq-v[23]-shares again.

15 years agoFix bugs with assuming time_t can be implicitly cast to long
Nick Mathewson [Tue, 29 Jun 2010 23:55:10 +0000 (19:55 -0400)] 
Fix bugs with assuming time_t can be implicitly cast to long

Many friendly operating systems have 64-bit times, and it's not nice
to pass them to an %ld format.

It's also extremely not-nice to write a time to the log as an
integer.  Most people think it's 2010 June 29 23:57 UTC+epsilon, not
1277855805+epsilon.

15 years agoMerge remote branch 'public/rand_double2'
Nick Mathewson [Tue, 29 Jun 2010 22:57:59 +0000 (18:57 -0400)] 
Merge remote branch 'public/rand_double2'

15 years agoMerge remote branch 'mikeperry/cbt-bugfixes3'
Nick Mathewson [Tue, 29 Jun 2010 22:57:50 +0000 (18:57 -0400)] 
Merge remote branch 'mikeperry/cbt-bugfixes3'

15 years agostart an 0.2.2.14-alpha changelog
Roger Dingledine [Tue, 29 Jun 2010 22:40:08 +0000 (18:40 -0400)] 
start an 0.2.2.14-alpha changelog

15 years agoGroup in torrc is obsolete, so stop checking it
Roger Dingledine [Sun, 27 Jun 2010 06:31:00 +0000 (02:31 -0400)] 
Group in torrc is obsolete, so stop checking it

15 years agoMake cbt_generate_sample use crypto_rand_double()
Nick Mathewson [Wed, 23 Jun 2010 01:31:31 +0000 (21:31 -0400)] 
Make cbt_generate_sample use crypto_rand_double()

Possible workaround for bug 1139, if anybody cares.

15 years agoMerge branch 'bug1526-v2'
Nick Mathewson [Fri, 25 Jun 2010 22:56:15 +0000 (18:56 -0400)] 
Merge branch 'bug1526-v2'

15 years agoFix a compile error when building with Libevent before 1.4.5-stable
Nick Mathewson [Fri, 25 Jun 2010 20:14:21 +0000 (16:14 -0400)] 
Fix a compile error when building with Libevent before 1.4.5-stable

Older versions of Libevent forgot to declare enough function arguments
constant.

15 years agoUse Libevent 2.0's periodic timers where available.
Nick Mathewson [Fri, 25 Jun 2010 19:31:46 +0000 (15:31 -0400)] 
Use Libevent 2.0's periodic timers where available.

These timers behave better with non-monotonic clocks than our old
ones, and also try harder to make once-per-second events get called
one second apart, rather than one-plus-epsilon seconds apart.

This fixes bug 943 for everybody using Libevent 2.0 or later.

15 years agoMake spec docs reference RFC2119
Nick Mathewson [Fri, 25 Jun 2010 18:58:25 +0000 (14:58 -0400)] 
Make spec docs reference RFC2119

Now people will have no excuse for not knowing what "MUST" and "MAY"
mean.  Fixes bug 1310.

15 years agoFix typo in tinytest_demo
Steven Murdoch [Fri, 25 Jun 2010 16:09:06 +0000 (17:09 +0100)] 
Fix typo in tinytest_demo

15 years agoFix zlib macro brokenness on osx with zlib 1.2.4 and higher.
Nick Mathewson [Tue, 8 Jun 2010 22:10:20 +0000 (18:10 -0400)] 
Fix zlib macro brokenness on osx with zlib 1.2.4 and higher.

From the code:
   zlib 1.2.4 and 1.2.5 do some "clever" things with macros.  Instead of
   saying "(defined(FOO) ? FOO : 0)" they like to say "FOO-0", on the theory
   that nobody will care if the compile outputs a no-such-identifier warning.

   Sorry, but we like -Werror over here, so I guess we need to define these.
   I hope that zlib 1.2.6 doesn't break these too.

Possible fix for bug 1526.

15 years agoLog an error if openssl fails to copy a key for us
Nick Mathewson [Wed, 23 Jun 2010 02:20:52 +0000 (22:20 -0400)] 
Log an error if openssl fails to copy a key for us

This should never happen unless openssl is buggy or some of our
assumptions are deeply wrong, but one of those might have been the
cause of the not-yet-reproducible bug 1209.  If it ever happens again,
let's get some info we can use.

15 years agoAdd a function to return a double in range [0,1).
Nick Mathewson [Wed, 23 Jun 2010 01:30:26 +0000 (21:30 -0400)] 
Add a function to return a double in range [0,1).

15 years agoRemove the extra space that is sent in certain STREAM messages from the controller...
Kat Magic [Tue, 22 Jun 2010 23:04:56 +0000 (19:04 -0400)] 
Remove the extra space that is sent in certain STREAM messages from the controller. (closes #1583)

15 years agoMention the purpose field for leaked circuits.
Mike Perry [Thu, 17 Jun 2010 01:13:27 +0000 (18:13 -0700)] 
Mention the purpose field for leaked circuits.

15 years agoAdd CLOSE_MS and CLOSE_RATE keywords to buildtimeout event.
Mike Perry [Wed, 16 Jun 2010 01:02:19 +0000 (18:02 -0700)] 
Add CLOSE_MS and CLOSE_RATE keywords to buildtimeout event.

15 years agoBe more proactive about closing unused circuits.
Mike Perry [Tue, 15 Jun 2010 21:46:01 +0000 (14:46 -0700)] 
Be more proactive about closing unused circuits.

We need to ensure that we close timeout measurement circuits. While
we're at it, we should close really old circuits of certain types that
aren't in use, and log really old circuits of other types.

15 years agoSplit the circuit timeout and close codepaths.
Mike Perry [Tue, 15 Jun 2010 08:13:49 +0000 (01:13 -0700)] 
Split the circuit timeout and close codepaths.

We need to record different statistics at point of timeout, vs the point
of forcible closing.

Also, give some better names to constants and state file variables
to indicate they are not dealing with timeouts, but abandoned circuits.

15 years agoFix initialization and reset issues with close_ms.
Mike Perry [Tue, 15 Jun 2010 05:47:45 +0000 (22:47 -0700)] 
Fix initialization and reset issues with close_ms.

Also clean up some log messages.

15 years agoAnswer question from Roger.
Nick Mathewson [Mon, 14 Jun 2010 22:32:44 +0000 (18:32 -0400)] 
Answer question from Roger.

15 years agoa line that's been sitting in my sandbox for months
Roger Dingledine [Mon, 14 Jun 2010 22:25:37 +0000 (18:25 -0400)] 
a line that's been sitting in my sandbox for months

15 years agoSave a couple characters' allocation in esc_for_log
Florian Zumbiehl [Mon, 14 Jun 2010 18:05:03 +0000 (14:05 -0400)] 
Save a couple characters' allocation in esc_for_log

15 years agoCopy the release notes from 0.2.1.26 into the master ChangeLog
Nick Mathewson [Fri, 11 Jun 2010 20:31:03 +0000 (16:31 -0400)] 
Copy the release notes from 0.2.1.26 into the master ChangeLog

15 years agoMerge commit 'sjmurdoch/xxx-using-spdy'
Nick Mathewson [Fri, 11 Jun 2010 17:25:38 +0000 (13:25 -0400)] 
Merge commit 'sjmurdoch/xxx-using-spdy'

15 years agoMerge commit 'sebastian/hostnamewarn'
Nick Mathewson [Fri, 11 Jun 2010 17:21:31 +0000 (13:21 -0400)] 
Merge commit 'sebastian/hostnamewarn'

15 years agoMerge commit 'origin/maint-0.2.1'
Nick Mathewson [Fri, 11 Jun 2010 17:20:20 +0000 (13:20 -0400)] 
Merge commit 'origin/maint-0.2.1'

15 years agoAdd maatuska as eighth v3 directory authority.
Karsten Loesing [Thu, 10 Jun 2010 14:56:08 +0000 (16:56 +0200)] 
Add maatuska as eighth v3 directory authority.

15 years agoDon't put a ControlPort without auth in sample bridge torrc
Sebastian Hahn [Thu, 10 Jun 2010 15:44:36 +0000 (17:44 +0200)] 
Don't put a ControlPort without auth in sample bridge torrc

Thanks Roger for noticing

15 years agochange Bytes to B to fix ticket 1195.
Andrew Lewman [Thu, 10 Jun 2010 01:04:28 +0000 (21:04 -0400)] 
change Bytes to B to fix ticket 1195.

15 years agoDon't crash when reading cached*consensus files on startup
Sebastian Hahn [Thu, 10 Jun 2010 14:18:26 +0000 (16:18 +0200)] 
Don't crash when reading cached*consensus files on startup

Fixes bug 1352

15 years agoUpdate changelog.
Mike Perry [Tue, 8 Jun 2010 08:18:18 +0000 (01:18 -0700)] 
Update changelog.

15 years agoKeep circuits open until the greater of 95th CDF percentile or 60s.
Mike Perry [Tue, 8 Jun 2010 08:01:47 +0000 (01:01 -0700)] 
Keep circuits open until the greater of 95th CDF percentile or 60s.

This is done to provide better data to our right-censored Pareto model.

We do this by simply marking them with a new purpose.

15 years agoUpdate spec with new right-censored pareto estimators.
Mike Perry [Tue, 8 Jun 2010 03:02:12 +0000 (20:02 -0700)] 
Update spec with new right-censored pareto estimators.

15 years agoMake the Xm mode selection a consensus parameter.
Mike Perry [Tue, 8 Jun 2010 04:17:12 +0000 (21:17 -0700)] 
Make the Xm mode selection a consensus parameter.

15 years agoAddress some issues with unit tests.
Mike Perry [Tue, 8 Jun 2010 02:06:06 +0000 (19:06 -0700)] 
Address some issues with unit tests.

Histogram conversion causes accuracy loss, and there are some
boundary conditions when we hit 1000 circuits that cause
false negative test results.

15 years agoAdd timeout count state variable.
Mike Perry [Mon, 7 Jun 2010 09:36:43 +0000 (02:36 -0700)] 
Add timeout count state variable.

15 years agoRemove synthetic timeout code in favor of better Pareto model.
Mike Perry [Thu, 3 Jun 2010 09:36:43 +0000 (02:36 -0700)] 
Remove synthetic timeout code in favor of better Pareto model.

15 years agoArma hates (\d+). Remove mine and some others.
Mike Perry [Wed, 2 Jun 2010 05:10:22 +0000 (22:10 -0700)] 
Arma hates (\d+). Remove mine and some others.

15 years agoImprove log message about large timeouts and fix some typos.
Mike Perry [Wed, 2 Jun 2010 05:07:54 +0000 (22:07 -0700)] 
Improve log message about large timeouts and fix some typos.

15 years agoMerge remote branch 'origin/maint-0.2.1'
Nick Mathewson [Mon, 7 Jun 2010 19:10:48 +0000 (15:10 -0400)] 
Merge remote branch 'origin/maint-0.2.1'

15 years agoadd changes file for geoip db update
Nick Mathewson [Mon, 7 Jun 2010 19:09:48 +0000 (15:09 -0400)] 
add changes file for geoip db update

15 years agoUpdate to June 1 2010 Maxmind GeoLite Country database.
Karsten Loesing [Wed, 2 Jun 2010 17:53:19 +0000 (19:53 +0200)] 
Update to June 1 2010 Maxmind GeoLite Country database.

15 years agoIn asciidoc-helper.sh, be more verbose when a2x fails.
Nick Mathewson [Mon, 7 Jun 2010 15:38:58 +0000 (11:38 -0400)] 
In asciidoc-helper.sh, be more verbose when a2x fails.

Previously, we said (more or less), "a2x is broken and here's how you could
try to fix it".  Instead, we now say "We need a2x to build manpages; a2x
didn't work; here is a fix that might work for you; alternatively you
could just skip manpage building."

Addresses bug 1524.

Also, give the message as a here-document rather than a bunch of echos.

15 years agoMerge branch 'bug1522'
Nick Mathewson [Mon, 7 Jun 2010 15:22:16 +0000 (11:22 -0400)] 
Merge branch 'bug1522'

15 years agoReinstate warning when HOME isn't set.
Nick Mathewson [Mon, 7 Jun 2010 15:20:39 +0000 (11:20 -0400)] 
Reinstate warning when HOME isn't set.

Having ~/.tor expand into /.tor is, after all, almost certainly not
what the user wanted, and it deserves a warning message.

Also, convert a guess-and-malloc-and-sprintf triple into an asprintf.

15 years agoSample torrc as a bridge
Andrew Lewman [Mon, 7 Jun 2010 00:02:37 +0000 (20:02 -0400)] 
Sample torrc as a bridge

On Sun, 6 Jun 2010 19:59:56 -0400
Andrew Lewman <andrew@torproject.org> wrote:

> attached.

let's try this again.

From e95c44bc5af90d982e9d95d63e78b2fde67431ed Mon Sep 17 00:00:00 2001
From: Andrew Lewman <andrew@torproject.org>
Date: Sun, 6 Jun 2010 19:56:16 -0400
Subject: [PATCH] Create a sample bridge configuration torrc.

15 years agoAdd option to not warn when getting an IP instead of hostname
Sebastian Hahn [Thu, 3 Jun 2010 10:52:34 +0000 (12:52 +0200)] 
Add option to not warn when getting an IP instead of hostname

15 years agoTreat unset $HOME like empty $HOME
Sebastian Hahn [Mon, 7 Jun 2010 00:18:01 +0000 (02:18 +0200)] 
Treat unset $HOME like empty $HOME

This means Tor no longer dies when it doesn't have a $HOME.

15 years agoDon't cannibalize one-hop circuits
Sebastian Hahn [Mon, 1 Mar 2010 21:26:44 +0000 (22:26 +0100)] 
Don't cannibalize one-hop circuits

In rare cases, we could cannibalize a one-hop circuit, ending up
with a two-hop circuit. This circuit would not be actually used,
but we should prevent its creation in the first place.

Thanks to outofwords and swissknife for helping to analyse this.

15 years agoLet bridge users use the non-primary address of a multi-homed bridge
Roger Dingledine [Fri, 4 Jun 2010 00:29:29 +0000 (20:29 -0400)] 
Let bridge users use the non-primary address of a multi-homed bridge

15 years agoClean up "Address" documentation even harder.
Nick Mathewson [Tue, 1 Jun 2010 14:53:32 +0000 (10:53 -0400)] 
Clean up "Address" documentation even harder.

15 years agoMerge commit 'sebastian/bug1381'
Nick Mathewson [Tue, 1 Jun 2010 14:36:50 +0000 (10:36 -0400)] 
Merge commit 'sebastian/bug1381'

15 years agoMake pointer types correct in WinCE patch
Nick Mathewson [Mon, 24 May 2010 16:30:19 +0000 (12:30 -0400)] 
Make pointer types correct in WinCE patch

15 years agoMerge branch 'port_to_wince'
Nick Mathewson [Mon, 24 May 2010 16:17:43 +0000 (12:17 -0400)] 
Merge branch 'port_to_wince'

15 years agoAdd 'changes' file for Windows CE port
Nick Mathewson [Fri, 21 May 2010 02:59:48 +0000 (22:59 -0400)] 
Add 'changes' file for Windows CE port

15 years agomoved wince related includes and defs to compat.h where possible, removed unused...
valerino [Sat, 22 May 2010 01:02:32 +0000 (03:02 +0200)] 
moved wince related includes and defs to compat.h where possible, removed unused/redundant wince includes

15 years agoPort Tor to work on Windows CE
valerino [Fri, 21 May 2010 02:53:39 +0000 (22:53 -0400)] 
Port Tor to work on Windows CE

Most of the changes here are switches to use APIs available on Windows
CE.  The most pervasive change is that Windows CE only provides the
wide-character ("FooW") variants of most of the windows function, and
doesn't support the older ASCII verions at all.

This patch will require use of the wcecompat library to get working
versions of the posix-style fd-based file IO functions.

[commit message by nickm]

15 years agoLog the correct address when purging a mismatchd DNS cache address
valerino [Fri, 21 May 2010 02:51:47 +0000 (22:51 -0400)] 
Log the correct address when purging a mismatchd DNS cache address

15 years agoDon't use "try" as an identifier
valerino [Fri, 21 May 2010 02:50:37 +0000 (22:50 -0400)] 
Don't use "try" as an identifier

C allows try, but some windows CE headers like to redefine 'try' to be
a reserved word.

15 years agoclean up whitespace in src/tools
Nick Mathewson [Fri, 21 May 2010 02:30:08 +0000 (22:30 -0400)] 
clean up whitespace in src/tools

15 years agoInclude src/tools in paths to check with "make check-spaces"
Steven Murdoch [Fri, 21 May 2010 01:20:26 +0000 (02:20 +0100)] 
Include src/tools in paths to check with "make check-spaces"

15 years agoMake rotate_request_period use BEGIN/END versions of FOREACH
Nick Mathewson [Mon, 17 May 2010 16:20:52 +0000 (12:20 -0400)] 
Make rotate_request_period use BEGIN/END versions of FOREACH

This appeases some versions of MSVC, which don't like it when you
have preprocessor commands inside a set of macro arguments.

15 years agoFix CBT unit tests.
Mike Perry [Wed, 12 May 2010 22:31:22 +0000 (15:31 -0700)] 
Fix CBT unit tests.

15 years agoClarify 'marking connection as too old' messages
Nick Mathewson [Wed, 12 May 2010 18:15:39 +0000 (14:15 -0400)] 
Clarify 'marking connection as too old' messages

Back when we changed the idea of a connection being "too old" for new
circuits into the connection being "bad" for new circuits, we didn't
actually change the info messages.  This led to telling the user that
we were labelling connections as "too old" for being worse than
connections that were actually older than them.

Found by Scott on or-talk.

15 years agoAdd changelog for this branch.
Mike Perry [Tue, 11 May 2010 02:57:31 +0000 (19:57 -0700)] 
Add changelog for this branch.

15 years agoFix comments from Sebastian + Nick's code review.
Mike Perry [Tue, 11 May 2010 02:56:27 +0000 (19:56 -0700)] 
Fix comments from Sebastian + Nick's code review.

Check for overflow in one place, and be consistent about type usage.

15 years agoBug 1296: Add option+logic to disable CBT learning.
Mike Perry [Sat, 8 May 2010 18:54:29 +0000 (11:54 -0700)] 
Bug 1296: Add option+logic to disable CBT learning.

There are now four ways that CBT can be disabled:

1. Network-wide, with the cbtdisabled consensus param.
2. Via config, with "LearnCircuitBuildTimeout 0"
3. Via config, with "AuthoritativeDirectory 1"
4. Via a state file write failure.

15 years agoBug 1357: Store the suspended timeout value to resume.
Mike Perry [Sat, 8 May 2010 17:41:00 +0000 (10:41 -0700)] 
Bug 1357: Store the suspended timeout value to resume.

This prevents a spurious warning where we have a timeout just after
deciding our network came back online.

15 years agoBug 1245: Ignore negative and large timeouts.
Mike Perry [Fri, 7 May 2010 22:42:57 +0000 (15:42 -0700)] 
Bug 1245: Ignore negative and large timeouts.

This should prevent some asserts and storage of incorrect build times
for the cases where Tor is suspended during a circuit construction, or
just after completing a circuit. The idea is that if the circuit
build time is much greater than we would have cut it off at, we probably
had a suspend event along this codepath, and we should discard the
value.

15 years agoBump timeout calculation message to notice when timeout changes.
Mike Perry [Tue, 4 May 2010 19:56:47 +0000 (12:56 -0700)] 
Bump timeout calculation message to notice when timeout changes.

15 years agoAdd consensus parameter for max synthetic quantile.
Mike Perry [Thu, 6 May 2010 21:53:05 +0000 (14:53 -0700)] 
Add consensus parameter for max synthetic quantile.

In case we decide that the timeout rate is now too high due to our
change of the max synthetic quantile value, this consensus parameter
will allow us to restore it to the previous value.

15 years agoUpdate path-spec.txt with contents of proposal 151.
Mike Perry [Tue, 4 May 2010 23:37:43 +0000 (16:37 -0700)] 
Update path-spec.txt with contents of proposal 151.

15 years agoAdd a TIMEOUT_RATE keyword to buildtimeout event.
Mike Perry [Fri, 7 May 2010 21:43:56 +0000 (14:43 -0700)] 
Add a TIMEOUT_RATE keyword to buildtimeout event.

15 years agoBug 1335: Implement filtering step to remove+prevent high timeouts.
Mike Perry [Fri, 7 May 2010 23:19:44 +0000 (16:19 -0700)] 
Bug 1335: Implement filtering step to remove+prevent high timeouts.

This is for the other issue we saw in Bug 1335. A large number of high
timeouts were causing the timeout calculation to slowly drift upwards,
especially in conditions of load. This fix repeatedly regenerates all of
our synthetic timeouts whenever the timeout changes, to try to prevent
drift.

It also lowers the timeout cap to help for some cases of Bug 1245, where
some timeout values were so large that we ended up allocating a ton of
scratch memory to count the histogram bins.

The downside is that lowering this cap is affecting our timeout rate.
Unfortunately, the buildtimeout quantile is now higher than the actual
completion rate by what appears to be about 7-10%, which probably
represents the skew in the distribution due to lowering this synthetic
cap.

15 years agoBug 1335: Alter Xm calculation to be weighted avg of top N=3 modes.
Mike Perry [Tue, 4 May 2010 21:42:37 +0000 (14:42 -0700)] 
Bug 1335: Alter Xm calculation to be weighted avg of top N=3 modes.

In my state files, I was seeing several peaks, probably due to different
guards having different latency. This change is meant to better capture
this behavior and generate more reasonable timeouts when it happens. It
is improving the timeout values for my collection of state files.

15 years agoMerge commit 'linus/master'
Roger Dingledine [Fri, 7 May 2010 21:27:17 +0000 (17:27 -0400)] 
Merge commit 'linus/master'