diff options
author | Roger Dingledine <arma@torproject.org> | 2004-04-01 01:57:22 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-04-01 01:57:22 +0000 |
commit | d13857a3f0e7c9970cd93166459a035969751642 (patch) | |
tree | 6b6f176fda46380a7f9d90d04fd91fc42f19c62d /src/or/connection_edge.c | |
parent | 6c9c4a3249de5befb2564381075529cb4d2a63ef (diff) | |
download | tor-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/connection_edge.c')
-rw-r--r-- | src/or/connection_edge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index c65fdb7d0..7985edb03 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -739,7 +739,7 @@ static int connection_ap_handshake_attach_circuit(connection_t *conn, case 0: /* no useful circuits available */ if(!circuit_get_newest(conn, 0, must_be_clean)) { /* is one already on the way? */ - circuit_launch_new(); + circuit_launch_new(CIRCUIT_PURPOSE_C_GENERAL); } return 0; default: /* case 1, it succeeded, great */ |