diff options
author | Roger Dingledine <arma@torproject.org> | 2009-12-29 22:25:02 -0500 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2009-12-29 22:25:02 -0500 |
commit | f255272f45a2ae563862a14d3862b81d0ffee72f (patch) | |
tree | ba550bb10cc101fe87bcb6c13c29c501a5412760 /src/or/connection_or.c | |
parent | 9a07f30b90800a0741e81f405cd88563ed09bdb9 (diff) | |
download | tor-f255272f45a2ae563862a14d3862b81d0ffee72f.tar.gz tor-f255272f45a2ae563862a14d3862b81d0ffee72f.zip |
add separate per-conn write limiting
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r-- | src/or/connection_or.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c index 6704af8f09..13a5953576 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -352,12 +352,13 @@ connection_or_init_conn_from_address(or_connection_t *conn, * give it full bandwidth. */ conn->bandwidthrate = (int)options->BandwidthRate; conn->read_bucket = conn->bandwidthburst = (int)options->BandwidthBurst; + conn->write_bucket = conn->bandwidthburst = (int)options->BandwidthBurst; } else { /* Not a recognized relay. Squeeze it down based on the * suggested bandwidth parameters in the consensus. */ conn->bandwidthrate = (int)networkstatus_get_param(NULL, "bwconnrate", (int)options->BandwidthRate); - conn->read_bucket = conn->bandwidthburst = + conn->read_bucket = conn->write_bucket = conn->bandwidthburst = (int)networkstatus_get_param(NULL, "bwconnburst", (int)options->BandwidthBurst); } |