diff options
author | Roger Dingledine <arma@torproject.org> | 2007-07-29 22:13:44 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-07-29 22:13:44 +0000 |
commit | ca7c53d3cc93c71ee1c5d268cbfd3c48dfb1848f (patch) | |
tree | 7813c499176f38180fce80004fa7bb23c25b6929 /src/or/relay.c | |
parent | 70f1c257294e5712b2a1128d9a9a98424972048b (diff) | |
download | tor-ca7c53d3cc93c71ee1c5d268cbfd3c48dfb1848f.tar.gz tor-ca7c53d3cc93c71ee1c5d268cbfd3c48dfb1848f.zip |
Be even more aggressive about separating local traffic from relayed
traffic when RelayBandwidthRate is set. (Refines proposal 111.)
svn:r10974
Diffstat (limited to 'src/or/relay.c')
-rw-r--r-- | src/or/relay.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/relay.c b/src/or/relay.c index a2f77eaf4d..ff3293b5b2 100644 --- a/src/or/relay.c +++ b/src/or/relay.c @@ -505,6 +505,11 @@ relay_send_command_from_edge(uint16_t stream_id, circuit_t *circ, log_debug(LD_OR,"delivering %d cell %s.", relay_command, cell_direction == CELL_DIRECTION_OUT ? "forward" : "backward"); + if (cell_direction == CELL_DIRECTION_OUT && circ->n_conn) { + /* if we're using relaybandwidthrate, this conn wants priority */ + circ->n_conn->client_used = time(NULL); + } + if (circuit_package_relay_cell(&cell, circ, cell_direction, cpath_layer) < 0) { log_warn(LD_BUG,"circuit_package_relay_cell failed. Closing."); |