aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-04-01 01:57:22 +0000
committerRoger Dingledine <arma@torproject.org>2004-04-01 01:57:22 +0000
commitd13857a3f0e7c9970cd93166459a035969751642 (patch)
tree6b6f176fda46380a7f9d90d04fd91fc42f19c62d /src/or/main.c
parent6c9c4a3249de5befb2564381075529cb4d2a63ef (diff)
downloadtor-d13857a3f0e7c9970cd93166459a035969751642.tar
tor-d13857a3f0e7c9970cd93166459a035969751642.tar.gz
put in hooks for alice and bob logic when circuits finish/fail
let you specify the purpose of circuits you launch bugfix: we used to be declaring the first successful circuit too early -- when the first hop finished. now we're more accurate. svn:r1421
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 0484c428d..e7b5d52bc 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -388,11 +388,11 @@ static void run_scheduled_events(time_t now) {
circuit_reset_failure_count();
if(circ && circ->timestamp_dirty) {
log_fn(LOG_INFO,"Youngest circuit dirty; launching replacement.");
- circuit_launch_new(); /* make a new circuit */
+ circuit_launch_new(CIRCUIT_PURPOSE_C_GENERAL); /* make a new circuit */
} else if (options.RunTesting && circ &&
circ->timestamp_created + TESTING_CIRCUIT_INTERVAL < now) {
log_fn(LOG_INFO,"Creating a new testing circuit.");
- circuit_launch_new();
+ circuit_launch_new(CIRCUIT_PURPOSE_C_GENERAL);
}
time_to_new_circuit = now + options.NewCircuitPeriod;
}
@@ -401,7 +401,7 @@ static void run_scheduled_events(time_t now) {
/* if there's no open circ, and less than 3 are on the way,
* go ahead and try another.
*/
- circuit_launch_new();
+ circuit_launch_new(CIRCUIT_PURPOSE_C_GENERAL);
}
}