diff options
author | Roger Dingledine <arma@torproject.org> | 2007-12-02 11:24:06 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-12-02 11:24:06 +0000 |
commit | 07dbaaac16ed63b031af61db6d7ba0499c47bba4 (patch) | |
tree | 926c5da99dbcd3a8b9c4d32457d2724de140537f /src/or/circuitbuild.c | |
parent | 79432e9967defa2c1bba898fdcc653ad69b7a6c0 (diff) | |
download | tor-07dbaaac16ed63b031af61db6d7ba0499c47bba4.tar.gz tor-07dbaaac16ed63b031af61db6d7ba0499c47bba4.zip |
We were ignoring our RelayBandwidthRate for the first 30 seconds
after opening a circuit -- even relayed circuits. Bugfix on
0.2.0.3-alpha.
svn:r12638
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r-- | src/or/circuitbuild.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index a83d43e8f8..1f1018a51a 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -506,8 +506,10 @@ circuit_deliver_create_cell(circuit_t *circ, uint8_t cell_type, memcpy(cell.payload, payload, ONIONSKIN_CHALLENGE_LEN); append_cell_to_circuit_queue(circ, circ->n_conn, &cell, CELL_DIRECTION_OUT); - /* mark it so it gets better rate limiting treatment. */ - circ->n_conn->client_used = time(NULL); + if (CIRCUIT_IS_ORIGIN(circ)) { + /* mark it so it gets better rate limiting treatment. */ + circ->n_conn->client_used = time(NULL); + } return 0; } |