From d13857a3f0e7c9970cd93166459a035969751642 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Thu, 1 Apr 2004 01:57:22 +0000 Subject: 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 --- src/or/connection_edge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/connection_edge.c') 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 */ -- cgit v1.2.3