diff options
author | Roger Dingledine <arma@torproject.org> | 2004-11-21 07:43:12 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-11-21 07:43:12 +0000 |
commit | 6a516dfdd38c05c7e535717cae766250a05b2471 (patch) | |
tree | ce9ebbaa29598afd54b560e1ca5d932d56d4c8dd /src/or/circuitbuild.c | |
parent | 67ac11c2fab6f1b6ce561fcf783defca91fe8caf (diff) | |
download | tor-6a516dfdd38c05c7e535717cae766250a05b2471.tar.gz tor-6a516dfdd38c05c7e535717cae766250a05b2471.zip |
be more greedy about filling up all relay cells.
this may have some bugs in it still.
and it may end up not being what we want to do.
svn:r2928
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r-- | src/or/circuitbuild.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index a98bca273f..9b5c834316 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -298,11 +298,13 @@ circuit_t *circuit_establish_circuit(uint8_t purpose, /** Find circuits that are waiting on <b>or_conn</b> to become open, * if any, and get them to send their create cells forward. + * + * Status is 1 if connect succeeded, or 0 if connect failed. */ -void circuit_n_conn_done(connection_t *or_conn, int success) { +void circuit_n_conn_done(connection_t *or_conn, int status) { circuit_t *circ; - log_fn(LOG_DEBUG,"or_conn to %s, success=%d", or_conn->nickname, success); + log_fn(LOG_DEBUG,"or_conn to %s, status=%d", or_conn->nickname, status); for(circ=global_circuitlist;circ;circ = circ->next) { if (circ->marked_for_close) @@ -312,7 +314,7 @@ void circuit_n_conn_done(connection_t *or_conn, int success) { circ->n_port == or_conn->port && !memcmp(or_conn->identity_digest, circ->n_conn_id_digest, DIGEST_LEN)) { tor_assert(circ->state == CIRCUIT_STATE_OR_WAIT); - if(!success) { /* or_conn failed; close circ */ + if(!status) { /* or_conn failed; close circ */ log_fn(LOG_INFO,"or_conn failed. Closing circ."); circuit_mark_for_close(circ); continue; |