diff options
author | Roger Dingledine <arma@torproject.org> | 2006-06-05 07:27:48 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-06-05 07:27:48 +0000 |
commit | bf09898f79e45cd0cf37cc768fb65678797f42b5 (patch) | |
tree | 578a096a948c478b30571883d38ba48fc892422c /src/or/circuitbuild.c | |
parent | 266afcd7d5d276a77f30debcc1ba51347390514b (diff) | |
download | tor-bf09898f79e45cd0cf37cc768fb65678797f42b5.tar tor-bf09898f79e45cd0cf37cc768fb65678797f42b5.tar.gz |
Note a bug that causes servers to sometimes never send the pending
create cell. Nick, is this a bug? If so, is my fix right?
svn:r6538
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r-- | src/or/circuitbuild.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index f5185334e..d05cc7a45 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -449,6 +449,14 @@ circuit_n_conn_done(connection_t *or_conn, int status) } tor_free(circ->onionskin); circuit_set_state(circ, CIRCUIT_STATE_OPEN); + /* XXX: Since circuit_set_state removes circ from the + * circuits_pending_or_conns, we will skip over whatever + * the next entry is when we proceed with the SMARTLIST_FOREACH. + * Thus if there's ever more than one entry, we will miss some. + * + * Is this true? If so, is the fix to decrement circ_sl_idx + * here too? -RD + */ } } }); |