aboutsummaryrefslogtreecommitdiff
path: root/src/or
Commit message (Collapse)AuthorAge
* Fix a memleak when throwing away some build timesSebastian Hahn2009-10-10
| | | | | This was introduced in f7e6e852e80c22b40a8f09bc1c85074726d7078e. Found by Coverity
* Tweak an assert that shouldn't fire either way.Mike Perry2009-10-07
| | | | | | There were however other places where we used to call this function that might have caused this to fire. Better safe than sorry now.
* Tweak values for when to discard all of our history.Mike Perry2009-10-07
| | | | | | 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.
* Remove another overzealous assert.Mike Perry2009-10-07
| | | | Pretimeouts may have build time data, just no timeout data.
* try to stem the 'sea of fail'Roger Dingledine2009-10-01
|
* Ignore one-hop circuits for circuit timeout calcRoger Dingledine2009-10-01
| | | | | | 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.
* Move Tonga to an alternate IP addressRoger Dingledine2009-09-30
|
* Move moria1 to a nearby IP addressRoger Dingledine2009-09-30
|
* Dir auths reject relays running < Tor 0.1.2.14Roger Dingledine2009-09-30
| | | | | | Directory authorities now reject Tor relays with versions less than 0.1.2.14. This step cuts out four relays from the current network, none of which are very big.
* Fix 1108: Handle corrupt or large build times state.Mike Perry2009-09-29
| | | | | | 1108 was actually just a fencepost error in an assert, but making the state file handling code resilient is a good idea.
* Whitespace fixNick Mathewson2009-09-28
|
* fix two comment bugs for load_stats_file()Roger Dingledine2009-09-28
|
* Merge commit 'karsten/fix-another-stats-bug'Roger Dingledine2009-09-28
|\
| * Fix an issue with including stats in extra-info descriptors.Karsten Loesing2009-09-28
| |
* | Fix some win32 compilation warningsNick Mathewson2009-09-28
|/
* Make sure we can't overflow in connection_ap_handshake_send_resolveSebastian Hahn2009-09-27
| | | | Found by Coverity
* Fix memory leakSebastian Hahn2009-09-27
| | | | | | | Some memory could be lost in the error case of circuit_build_times_parse_state. Found by Coverity
* Merge commit 'karsten/stats-fixes-master'Roger Dingledine2009-09-24
|\
| * Fix a couple of smaller issues with gathering statistics.Karsten Loesing2009-09-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Avoid memmoving 0 bytes which might lead to compiler warnings. - Don't require relays to be entry node AND bridge at the same to time to record clients. - Fix a memory leak when writing dirreq-stats. - Don't say in the stats files that measurement intervals are twice as long as they really are. - Reduce minimum observation time for requests to 12 hours, or we might never record usage. - Clear exit stats correctly after writing them, or we accumulate old stats over time. - Reset interval start for buffer stats, too.
* | Debugging logs for TLS handshakeNick Mathewson2009-09-24
|/ | | | | | | | | | | | The big change is to add a function to display the current SSL handshake state, and to log it everywhere reasonable. (A failure in SSL23_ST_CR_SRVR_HELLO_A is different from one in SSL3_ST_CR_SESSION_TICKET_A.) This patch also adds a new log domain for OR handshaking, so you can pull out all the handshake log messages without having to run at debug for everything. For example, you'd just say "log notice-err [handshake]debug-err file tor.log".
* downgrade a log notice at startupRoger Dingledine2009-09-23
| | | | | | This was the only log notice that happened during other tor invocations, like --verify-config and --list-fingerprint. Plus, now we think it works, so no need to hear about it.
* Move testing code into new src/test directory.Nick Mathewson2009-09-23
|
* Refactor unit tests to use the tinytest framework.Nick Mathewson2009-09-23
| | | | | | | | | | | | | | | | | | | "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.
* Be more robust to bad circwindow valuesRoger Dingledine2009-09-22
| | | | | | | | | 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.
* Merge commit 'mikeperry/circuittimeout-1103'Nick Mathewson2009-09-21
|\
| * Fix Bug 1103.Mike Perry2009-09-21
| | | | | | | | | | Don't pass in a quantile that is too high during pretimeout calcualtion.
* | downgrade a log severity, since this event has been knownRoger Dingledine2009-09-21
|/ | | | to happen and there's nothing the user can do about it
* Merge branch 'maint-0.2.1'Roger Dingledine2009-09-20
|\
| * Revert "Teach connection_ap_can_use_exit about Exclude*Nodes"Roger Dingledine2009-09-20
| | | | | | | | | | | | | | This reverts commit dc3229313b6d2aaff437c6fc7fa55ead4409e93d. We're going to do this more thoroughly in 0.2.2.x, and not in maint-0.2.1.
| * Merge commit 'karsten/fix-1073' into maint-0.2.1Nick Mathewson2009-09-16
| |\
| | * Reduce log level for bug case that we now know really exists.Karsten Loesing2009-09-01
| | |
| | * Avoid segfault when accessing hidden service.Karsten Loesing2009-08-29
| | |
* | | Fix build warnings on OSX 10.5.8Nick Mathewson2009-09-20
| | |
* | | Change the condition on the nonlive timeout counting.Mike Perry2009-09-20
| | | | | | | | | | | | Try to clarify things in the comment too.
* | | Fix typos and comments, plus two bugsRoger Dingledine2009-09-20
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Implement and document new network liveness algorithm.Mike Perry2009-09-20
| | | | | | | | | | | | Based on irc discussion with arma.
* | | Fix some precision-related asserts in unit tests.Mike Perry2009-09-20
| | | | | | | | | | | | | | | Mostly by storing the timeout as milliseconds and not seconds internally.
* | | disable the end of circuitbuildtimeout units testsRoger Dingledine2009-09-18
| | | | | | | | | | | | until mike figures out some other way to make them pass reliably
* | | Fix compile on freebsdSebastian Hahn2009-09-18
| | |
* | | Let our config abbreviations rewrite more than onceRoger Dingledine2009-09-17
| | |
* | | a mish-mash of stuff in my sandboxRoger Dingledine2009-09-17
| | |
* | | give proposal 151 a changelog and other touchupsRoger Dingledine2009-09-17
| | |
* | | Choose early circuit idle timeout better.Roger Dingledine2009-09-17
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge commit 'mikeperry/circuitbuildtimeout-final'Roger Dingledine2009-09-16
|\ \ \
| * | | Clarify use of magic number 0.98 with #define.Mike Perry2009-09-16
| | | |
| * | | Fix unit tests and compile issues on Snow LeopardSebastian Hahn2009-09-16
| | | |
| * | | Change liveness value to be a function of the timeout.Mike Perry2009-09-16
| | | | | | | | | | | | | | | | | | | | And also the number of recent circuits used to decide when the network changes.
| * | | Add log message so we have accurate build time values.Mike Perry2009-09-16
| | | |
| * | | Address nickm's issues from his review #1.Mike Perry2009-09-16
| | | |
| * | | Move circuitbuildtimeout config check.Mike Perry2009-09-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 (09a75ad) was trying to address.