- 12 Dec, 2009 1 commit
-
-
Sebastian Hahn authored
Some *_free functions threw asserts when passed NULL. Now all of them accept NULL as input and perform no action when called that way. This gains us consistence for our free functions, and allows some code simplifications where an explicit null check is no longer necessary.
-
- 27 Oct, 2009 1 commit
-
-
Nick Mathewson authored
In C, the code "char x[10]; if (x) {...}" always takes the true branch of the if statement. Coverity notices this now. In some cases, we were testing arrays to make sure that an operation we wanted to do would suceed. Those cases are now always-true. In some cases, we were testing arrays to see if something was _set_. Those caes are now tests for strlen(s), or tests for !tor_mem_is_zero(d,len).
-
- 14 Oct, 2009 1 commit
-
-
Roger Dingledine authored
backport of c43859c5 backport of 0d13e0ed
-
- 11 Oct, 2009 1 commit
-
-
Roger Dingledine authored
-
- 10 Oct, 2009 1 commit
-
-
Sebastian Hahn authored
This was introduced in f7e6e852. Found by Coverity
-
- 07 Oct, 2009 3 commits
-
-
Mike Perry authored
There were however other places where we used to call this function that might have caused this to fire. Better safe than sorry now.
-
Mike Perry authored
This seems to be happening to me a lot on a garbage DSL line. We may need to come up with 2 threshholds: a high short onehop count and a lower longer count.
-
Mike Perry authored
Pretimeouts may have build time data, just no timeout data.
-
- 01 Oct, 2009 2 commits
-
-
Roger Dingledine authored
-
Roger Dingledine authored
Don't count one-hop circuits when we're estimating how long it takes circuits to build on average. Otherwise we'll set our circuit build timeout lower than we should. Bugfix on 0.2.2.2-alpha.
-
- 29 Sep, 2009 1 commit
-
-
1108 was actually just a fencepost error in an assert, but making the state file handling code resilient is a good idea.
-
- 27 Sep, 2009 1 commit
-
-
Some memory could be lost in the error case of circuit_build_times_parse_state. Found by Coverity
-
- 22 Sep, 2009 1 commit
-
-
Mike Perry authored
Don't pass in a quantile that is too high during pretimeout calcualtion.
-
- 21 Sep, 2009 1 commit
-
-
Mike Perry authored
Try to clarify things in the comment too.
-
- 20 Sep, 2009 3 commits
-
-
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.
-
- 18 Sep, 2009 1 commit
-
-
Sebastian Hahn authored
-
- 17 Sep, 2009 6 commits
-
-
Roger Dingledine authored
-
Mike Perry authored
-
Sebastian Hahn authored
-
Mike Perry authored
And also the number of recent circuits used to decide when the network changes.
-
Mike Perry authored
-
Mike Perry authored
-
- 16 Sep, 2009 16 commits
-
-
Mike Perry authored
We want it to be under our control so it doesn't mess up initialization. This is likely the cause for the bug the previous assert-adding commit (09a75ad3) was trying to address.
-
Mike Perry authored
Got a negative timeout value on startup. Need to narrow it down.
-
Mike Perry authored
Also use bin midpoints for time values.
-
Mike Perry authored
-
Mike Perry authored
It seems to fire because of precision issues. Added more debug info to the warn to try to figure out for sure.
-
Mike Perry authored
-
Roger Dingledine authored
-
Mike Perry authored
Also change the max timeout quantile to 0.98, so we can avoid huge synthetic timeout values.
-
Karsten Loesing authored
Also correct some typos.
-
Mike Perry authored
-
Mike Perry authored
-
Mike Perry authored
Using CircuitBuildTimeout is prone to issues with SIGHUP, etc. Also, shuffle the circuit build times array after loading it in so that newer measurements don't replace chunks of similarly timed measurements.
-
Mike Perry authored
-
Mike Perry authored
Also switch Xm calculation to mode, not min.
-
Mike Perry authored
It was compiling, but causing segfaults. Also, adjust when the timer starts for new test circs and save state every 25 circuits.
-
Mike Perry authored
Also add code to keep creating circuits every minute until we hit our minimum threshhold.
-