summaryrefslogtreecommitdiff
path: root/src/or/command.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-07-29 22:13:44 +0000
committerRoger Dingledine <arma@torproject.org>2007-07-29 22:13:44 +0000
commitca7c53d3cc93c71ee1c5d268cbfd3c48dfb1848f (patch)
tree7813c499176f38180fce80004fa7bb23c25b6929 /src/or/command.c
parent70f1c257294e5712b2a1128d9a9a98424972048b (diff)
downloadtor-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/command.c')
-rw-r--r--src/or/command.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/command.c b/src/or/command.c
index 381ca3756a..d89581216b 100644
--- a/src/or/command.c
+++ b/src/or/command.c
@@ -322,6 +322,12 @@ command_process_relay_cell(cell_t *cell, or_connection_t *conn)
return;
}
+ if (CIRCUIT_IS_ORIGIN(circ)) {
+ /* if we're a server and treating connections with recent local
+ * traffic better, then this is one of them. */
+ conn->client_used = time(NULL);
+ }
+
if (!CIRCUIT_IS_ORIGIN(circ) &&
cell->circ_id == TO_OR_CIRCUIT(circ)->p_circ_id)
direction = CELL_DIRECTION_OUT;