aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Rename all of the macros in tor_queue.h to start with TOR_Nick Mathewson2013-01-30
|
* Merge branch 'bug5956_squashed'Nick Mathewson2013-01-30
|\
| * Parameterize FRAC_USABLE_NEEDED for fraction of circuitsNick Mathewson2013-01-30
| | | | | | | | | | | | Instead of hardcoding the minimum fraction of possible paths to 0.6, we take it from the user, and failing that from the consensus, and failing that we fall back to 0.6.
| * Compute whether we're ready to build circuits based on fraction of pathsNick Mathewson2013-01-30
| | | | | | | | | | | | | | | | | | Previously we did this based on the fraction of descriptors we had. But really, we should be going based on what fraction of paths we're able to build based on weighted bandwidth, since otherwise a directory guard or two could make us behave quite oddly. Implementation for feature 5956
| * Add an optional out-arg to count_usable_descriptorsNick Mathewson2013-01-30
| | | | | | | | | | This way we get the usable nodes themselves, so we can feed them into frac_nodes_with_descriptors
| * Add a function to compute fraction of nodes (by weighted bw) with descriptorsNick Mathewson2013-01-30
| |
| * Split smartlist_choose_node_by_bandwidth_weightsNick Mathewson2013-01-18
| | | | | | | | | | | | This is a minimal refactoring to expose the weighted bandwidth calculations for each node so I can use them to see what fraction of nodes, weighted by bandwidth, we have descriptors for.
* | Fix unit test to not expect v2 directory request geoip infoNick Mathewson2013-01-29
| | | | | | | | | | | | | | When we implemented #5823 and removed v2 directory request info, we never actually changed the unit tests not to expect it. Fixes bug 8084; bug not in any released version of Tor.
* | Merge branch 'bug7802' of ssh://git-rw.torproject.org/mikeperry/torAndrea Shepard2013-01-28
|\ \
| * | Bug 8024: Check for null/closed channel before probing.Mike Perry2013-01-22
| | |
| * | squash! Remove a source of error during path bias scalingMike Perry2013-01-20
| | | | | | | | | | | | Improve debug logs and fix a state fencepost error.
| * | squash! Implement Path use bias accounting.Mike Perry2013-01-20
| | | | | | | | | | | | Make a debug log more informative.
| * | Prevent early close of path bias testing circuits.Mike Perry2013-01-20
| | | | | | | | | | | | We need to let them live long enough to perform the test.
| * | squash! Remove a source of error during path bias scalingMike Perry2013-01-20
| | | | | | | | | | | | Move a log message about scaling to after we scale
| * | Bug 7802 changes file.Mike Perry2013-01-18
| | |
| * | Document path use bias options in the manpage.Mike Perry2013-01-18
| | |
| * | Remove a source of error during path bias scalingMike Perry2013-01-18
| | | | | | | | | | | | | | | | | | | | | | | | If any circuits were opened during a scaling event, we were scaling attempts and successes by different amounts. This leads to rounding error. The fix is to record how many circuits are in a state that hasn't been fully counted yet, and subtract that before scaling, and add it back afterwords.
| * | Don't immediately count cannibalized circs as used.Mike Perry2013-01-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since they use RELAY_EARLY (which can be seen by all hops on the path), it's not safe to say they actually count as a successful use. There are also problems with trying to allow them to finish extending due to the circuit purpose state machine logic. It is way less complicated (and possibly more semantically coherent) to simply wait until we actually try to do something with them before claiming we 'used' them. Also, we shouldn't call timed out circuits 'used' either, for semantic consistency.
| * | Roll back the path_state for circs if we detatch a stream.Mike Perry2013-01-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An adversary could let the first stream request succeed (ie the resolve), but then tag and timeout the remainder (via cell dropping), forcing them on new circuits. Rolling back the state will cause us to probe such circuits, which should lead to probe failures in the event of such tagging due to either unrecognized cells coming in while we wait for the probe, or the cipher state getting out of sync in the case of dropped cells.
| * | Implement Path use bias accounting.Mike Perry2013-01-18
| | | | | | | | | | | | | | | | | | | | | Path use bias measures how often we can actually succeed using the circuits we actually try to use. It is a subset of path bias accounting, but it is computed as a separate statistic because the rate of client circuit use may vary depending on use case.
* | | Merge branch 'time_based_onionqueue_v2' of ssh://git-rw.torproject.org/nickm/torAndrea Shepard2013-01-24
|\ \ \
| * | | Better handling (I think) for onionskin timing w jumpy clocksNick Mathewson2013-01-03
| | | | | | | | | | | | | | | | | | | | The fix: Instead of clipping huge/negative times, ignore them as probably invalid.
| * | | Record and report the overhead of how we handle onionskins.Nick Mathewson2013-01-03
| | | |
| * | | Use a TAILQ, not a singly-linked queue, for the onion queue.Nick Mathewson2013-01-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes removing items from the middle of the queue into an O(1) operation, which could prove important as we let onionqueues grow longer. Doing this actually makes the code slightly smaller, too.
| * | | Eliminate MaxOnionsPending; replace it with MaxOnionQueueDelayNick Mathewson2013-01-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The right way to set "MaxOnionsPending" was to adjust it until the processing delay was appropriate. So instead, let's measure how long it takes to process onionskins (sampling them once we have a big number), and then limit the queue based on its expected time to finish. This change is extra-necessary for ntor, since there is no longer a reasonable way to set MaxOnionsPending without knowing what mix of onionskins you'll get. This patch also reserves 1/3 of the onionskin spots for ntor handshakes, on the theory that TAP handshakes shouldn't be allowed to starve their speedier cousins. We can change this later if need be. Resolves 7291.
* | | | Merge remote-tracking branch 'public/bug8012'Nick Mathewson2013-01-22
|\ \ \ \
| * | | | More of b30d06255c24165 for #6826: fix compat_libevent compilationNick Mathewson2013-01-21
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | It looks like there was a compilation error for 6826 on some platforms. Removing even more now-uncallable code to handle detecting libevent versions before 1.3e. Fixes bug 8012; bug not in any released Tor.
* | | | Merge remote-tracking branch 'karsten/bug5823'Nick Mathewson2013-01-19
|\ \ \ \ | |/ / / |/| | |
| * | | Remove dirreq-v2-* lines from extra-info descriptors.Karsten Loesing2013-01-17
| | | | | | | | | | | | | | | | Implements the rest of #5823.
| * | | Removee dirrec-v*-sharestatisticsNick Mathewson2013-01-16
| | | | | | | | | | | | | | | | These were unused and sometimes inaccurate. Resolves 5823.
* | | | Remove -v flag from autoreconf by defaultNick Mathewson2013-01-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | You can get it back by saying ./autogen.sh -v Patch from onizuka; for bug 4664. This isn't a complete fix, since starting from a clean checkout still reports that it's installing stuff
* | | | Replace base-{16,32,64} with base{16,32,64} in the codeNick Mathewson2013-01-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patch from onizuka generated with find ./ -type f -perm -u+rw -exec sed -ri 's/(Base)-(16|32|64)/\1\2/gi' {} \; Fixes issue 6875 on Tor.
* | | | Merge branch '024_msvc_more'Nick Mathewson2013-01-17
|\ \ \ \
| * | | | Another msvc changes entryNick Mathewson2013-01-17
| | | | |
| * | | | For now, always use donna32 on msvcNick Mathewson2013-01-17
| | | | |
| * | | | Add ntor-related modules to the Makefiles.nmakeNick Mathewson2013-01-17
| | | | |
| * | | | Fix an MSVC warning in onion.h prototypesNick Mathewson2013-01-17
|/ / / /
* | | / Even more code-removal for 6826Nick Mathewson2013-01-17
| |_|/ |/| | | | | | | | (Pull on a thread and the whole sweater unravels.)
* | | Add a missing part of bug 7311's makefile.nmake tweaksNick Mathewson2013-01-17
| | | | | | | | | | | | | | | | | | Fix by "ultramage". This already has a changes entry.
* | | Merge branch 'bug6826_squashed'Nick Mathewson2013-01-17
|\ \ \
| * | | Drop detection logic for pre-1.3 busted libeventsNick Mathewson2013-01-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This won't actually break them any worse than they were broken before: it just removes a set of warnings that nobody was actually seeing, I hope. Closes 6826
* | | | Merge remote-tracking branch 'public/bug6302'Nick Mathewson2013-01-17
|\ \ \ \
| * | | | Refactor: Use SOCK_ERRNO to avoid some #ifdef _WIN32sNick Mathewson2013-01-16
| |/ / / | | | | | | | | | | | | Fixes ticket 6302
* | | | Implement proposal 204: ignore subdomains in hidden service addressesJérémy Bobbio2013-01-16
| | | | | | | | | | | | | | | | | | | | | | | | The implementation is pretty straightforward: parse_extended_hostname() is modified to drop any leading components from an address like 'foo.aaaaaaaaaaaaaaaa.onion'.
* | | | Merge branch '024_msvc_squashed'Nick Mathewson2013-01-16
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/or/or.h srcwin32/orconfig.h
| * | | | Fix an instance of snprintf; don't use _snprintf directlyNick Mathewson2013-01-16
| | | | |
| * | | | Changes files for 024_msvc branchNick Mathewson2013-01-16
| | | | |
| * | | | When building with MSVC, call every enum bitfield unsignedNick Mathewson2013-01-16
| | | | | | | | | | | | | | | | | | | | Fixes bug 7305.
| * | | | Add HAVE_EVENT_BASE_LOOPEXIT to win32/orconfig.hNick Mathewson2013-01-16
| | | | | | | | | | | | | | | | | | | | Fix for bug 7308
| * | | | Add more test modules for nmake makefilesNick Mathewson2013-01-16
| | | | |