aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuituse.c
Commit message (Collapse)AuthorAge
* Merge remote-tracking branch 'origin/maint-0.2.1' into maint-0.2.2Nick Mathewson2011-06-17
|\
| * Abandon rendezvous circuits on SIGNAL NEWNYMRobert Ransom2011-06-17
| |
* | Merge branch 'bug3045' into maint-0.2.2Nick Mathewson2011-05-30
|\ \ | | | | | | | | | | | | Conflicts: src/or/circuitbuild.c
| * | Log descriptions of nodes, not just nicknames.Nick Mathewson2011-05-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces a few new functions in router.c to produce a more helpful description of a node than its nickame, and then tweaks nearly all log messages taking a nickname as an argument to call these functions instead. There are a few cases where I left the old log messages alone: in these cases, the nickname was that of an authority (whose nicknames are useful and unique), or the message already included an identity and/or an address. I might have missed a couple more too. This is a fix for bug 3045.
* | | Use the normal four-hop CBT for client intro circuitsRobert Ransom2011-05-30
|/ / | | | | | | Fixes another part of bug 1297.
* | Replace a nasty add-malloc-snprintf with a nice clean asprintfNick Mathewson2011-05-15
| |
* | Better doc for consider_recording_trackexithostNick Mathewson2011-05-15
| |
* | Raise the TrackHostExits membership code into its own functionNick Mathewson2011-05-13
| |
* | Downgrade the "we launched 10 circuits for this stream" message. (See bug 3080)Nick Mathewson2011-05-12
| |
* | Merge remote-tracking branch 'public/3122_memcmp_squashed' into ↵Nick Mathewson2011-05-11
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug3122_memcmp_022 Conflicts throughout. All resolved in favor of taking HEAD and adding tor_mem* or fast_mem* ops as appropriate. src/common/Makefile.am src/or/circuitbuild.c src/or/directory.c src/or/dirserv.c src/or/dirvote.c src/or/networkstatus.c src/or/rendclient.c src/or/rendservice.c src/or/router.c src/or/routerlist.c src/or/routerparse.c src/or/test.c
| * Hand-conversion and audit phase of memcmp transitionNick Mathewson2011-05-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Here I looked at the results of the automated conversion and cleaned them up as follows: If there was a tor_memcmp or tor_memeq that was in fact "safe"[*] I changed it to a fast_memcmp or fast_memeq. Otherwise if there was a tor_memcmp that could turn into a tor_memneq or tor_memeq, I converted it. This wants close attention. [*] I'm erring on the side of caution here, and leaving some things as tor_memcmp that could in my opinion use the data-dependent fast_memcmp variant.
| * Automated conversion of memcmp to tor_memcmp/tor_mem[n]eqNick Mathewson2011-05-11
| | | | | | | | | | | | | | | | | | | | | | | | This commit is _exactly_ the result of perl -i -pe 's/\bmemcmp\(/tor_memcmp\(/g' src/*/*.[ch] perl -i -pe 's/\!\s*tor_memcmp\(/tor_memeq\(/g' src/*/*.[ch] perl -i -pe 's/0\s*==\s*tor_memcmp\(/tor_memeq\(/g' src/*/*.[ch] perl -i -pe 's/0\s*!=\s*tor_memcmp\(/tor_memneq\(/g' src/*/*.[ch] git checkout src/common/di_ops.[ch] git checkout src/or/test.c git checkout src/common/test.h
* | Merge branch 'bug3k_021' into bug3k_022Sebastian Hahn2011-04-28
|\| | | | | | | | | | | Conflicts: src/or/or.h src/or/rendclient.c
| * Fix a failure case of connection_ap_handshake_attach_circuit()Sebastian Hahn2011-04-28
| | | | | | | | | | tor_fragile_assert() might be a no-op, so we have to return something here to indicate failure to the caller.
| * Allow rend_client_send_introduction to fail transientlyRobert Ransom2011-04-28
| | | | | | | | i.e. without closing the AP connection.
* | make make check-spaces happier.Roger Dingledine2011-04-27
| | | | | | | | (still not happy.)
* | warn if we launch too many circuits for a given streamRoger Dingledine2011-04-27
| |
* | revert most of ef81649d2fcRoger Dingledine2011-04-27
| | | | | | | | | | | | | | | | Now we believe it to be the case that we never build a circuit for our stream that has an unsuitable exit, so we'll never need to use such a circuit. The risk is that we have some code that builds the circuit, but now we refuse to use it, meaning we just build a bazillion circuits and ignore them all.
* | Add a circuit_purpose_to_string() function, and use itNick Mathewson2011-04-27
| | | | | | | | | | We had a circuit_purpose_to_controller_string() function, but it was pretty coarse-grained and didn't try to be human-readable.
* | slight tweak on circuit_conforms_to_optionsRoger Dingledine2011-04-26
| | | | | | | | | | | | this function really needs to get a total rewrite (or die) For now, use #if 0 to disable it.
* | Merge remote-tracking branch 'public/xxx_fixups' into maint-0.2.2Nick Mathewson2011-04-07
|\ \ | | | | | | | | | | | | Conflicts: src/or/or.h
| * | Triage the XXX022 and XXX021 comments remaining in the codeNick Mathewson2011-03-25
| | | | | | | | | | | | | | | Remove some, postpone others, leave some alone. Now the only remaining XXX022s are ones that seem important to fix or investigate.
* | | Fix a compile warning on OS X 10.6Sebastian Hahn2011-04-07
| | |
* | | Use cbt to tell when to launch parallel intro circuitNick Mathewson2011-03-30
| | | | | | | | | | | | Implement feature from trac #2799
* | | Use timevals, not time_t, when expiring circuits.Nick Mathewson2011-03-30
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | We've got millisecond timers now, we might as well use them. This change won't actually make circuits get expiered with microsecond precision, since we only call the expiry functions once per second. Still, it should avoid the situation where we have a circuit get expired too early because of rounding. A couple of the expiry functions now call tor_gettimeofday: this should be cheap since we're only doing it once per second. If it gets to be called more often, though, we should onsider having the current time be an argument again.
* | Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2Nick Mathewson2011-01-03
|\| | | | | | | | | | | Conflicts: src/common/test.h src/or/test.c
| * Bump copyright statements to 2011Nick Mathewson2011-01-03
| |
* | Merge branch 'bug1772' into maint-0.2.2Roger Dingledine2010-09-29
|\ \
| * | no measurement circs if not enough build timesRoger Dingledine2010-09-29
| | | | | | | | | | | | | | | | | | | | | In the first 100 circuits, our timeout_ms and close_ms are the same. So we shouldn't transition circuits to purpose CIRCUIT_PURPOSE_C_MEASURE_TIMEOUT, since they will just timeout again next time we check.
| * | refactor and recomment; no actual changesRoger Dingledine2010-09-29
| | |
| * | Fix non-live condition checks.Mike Perry2010-09-29
| | | | | | | | | | | | | | | | | | | | | | | | Rechecking the timeout condition was foolish, because it is checked on the same codepath. It was also wrong, because we didn't round. Also, the liveness check itself should be <, and not <=, because we only have 1 second resolution.
* | | Merge commit 'mikeperry/bug1739' into maint-0.2.2Roger Dingledine2010-09-29
|\| |
| * | Send control port events for timeouts.Mike Perry2010-09-29
| | | | | | | | | | | | | | | We now differentiate between timeouts and cutoffs by the REASON string and the PURPOSE string.
* | | Merge commit 'mikeperry/bug1740' into maint-0.2.2Roger Dingledine2010-09-29
|\| |
| * | Only count timeout data for 3 hop circuits.Mike Perry2010-09-29
| | | | | | | | | | | | | | | Use 4/3 of this timeout value for 4 hop circuits, and use half of it for canabalized circuits.
* | | improve code comments, based on comments from nickRoger Dingledine2010-09-28
| | |
* | | handle ugly edge case in retrying entrynodesRoger Dingledine2010-09-28
| | | | | | | | | | | | | | | | | | | | | | | | Specifically, a circ attempt that we'd launched while the network was down could timeout after we've marked our entrynodes up, marking them back down again. The fix is to annotate as bad the OR conns that were around before we did the retry, so if a circuit that's attached to them times out we don't do anything about it.
* | | optimistically retry EntryNodes on socks requestRoger Dingledine2010-09-28
|/ / | | | | | | | | We used to mark all our known bridges up when they're all down and we get a new socks request. Now do that when we've set EntryNodes too.
* | fix another piece of 1741Roger Dingledine2010-08-14
| |
* | changes entry for bug 1741Roger Dingledine2010-08-13
| |
* | Add check for CIRCUIT_PURPOSE_S_REND_JOINED.Mike Perry2010-08-13
| | | | | | | | | | These circuits stick around much longer than others on the server side for performance reasons. Their lifetime is controlled by the client.
* | tiny changes i found in my sandboxRoger Dingledine2010-08-09
| |
* | Bug #1222: Clarify new circuit after sleep noticeChris Ball2010-07-31
| | | | | | | | | | ("Application request when we're believed to be offline." -> "Application request when we haven't used client functionality lately.")
* | Create rephist.hSebastian Hahn2010-07-27
| |
* | Create policies.hSebastian Hahn2010-07-27
| |
* | Create control.hSebastian Hahn2010-07-27
| |
* | Create connection_edge.hSebastian Hahn2010-07-27
| |
* | Create connection.hSebastian Hahn2010-07-27
| |
* | Create config.hSebastian Hahn2010-07-27
| |
* | Create circuituse.hSebastian Hahn2010-07-27
| |