diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-07-23 15:58:38 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-07-23 15:58:38 +0000 |
commit | ea95ce25b63e6a291d9c816308919caf887fa7ea (patch) | |
tree | 46fcdd336a7197acf4b3fb6b861d9c9068be3ef3 /src/or/circuitlist.c | |
parent | 2748afe60961596791bceb842dce2385c5b4db7e (diff) | |
download | tor-ea95ce25b63e6a291d9c816308919caf887fa7ea.tar.gz tor-ea95ce25b63e6a291d9c816308919caf887fa7ea.zip |
r17323@aud-055: nickm | 2008-07-23 17:58:25 +0200
Implement most of proposal 110.
svn:r16156
Diffstat (limited to 'src/or/circuitlist.c')
-rw-r--r-- | src/or/circuitlist.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c index 25cafb9e69..a090aefa56 100644 --- a/src/or/circuitlist.c +++ b/src/or/circuitlist.c @@ -347,6 +347,8 @@ origin_circuit_new(void) circ->next_stream_id = crypto_rand_int(1<<16); circ->global_identifier = n_circuits_allocated++; + circ->remaining_relay_early_cells = MAX_RELAY_EARLY_CELLS_PER_CIRCUIT; + circ->remaining_relay_early_cells -= crypto_rand_int(2); init_circuit_base(TO_CIRCUIT(circ)); @@ -367,6 +369,8 @@ or_circuit_new(circid_t p_circ_id, or_connection_t *p_conn) if (p_conn) circuit_set_p_circid_orconn(circ, p_circ_id, p_conn); + circ->remaining_relay_early_cells = MAX_RELAY_EARLY_CELLS_PER_CIRCUIT; + init_circuit_base(TO_CIRCUIT(circ)); return circ; |