Use an upper and lower bound for bridge weights
commit73def430e3ad3be0c9fe9accd4ebfc7a35e572b2
authorSebastian Hahn <sebastian@torproject.org>
Thu, 30 Sep 2010 04:10:56 +0000 (30 06:10 +0200)
committerSebastian Hahn <sebastian@torproject.org>
Thu, 30 Sep 2010 04:17:54 +0000 (30 06:17 +0200)
treef245f568373990bfcc66865ff06ca25cd23f0e42
parent45c51e32385d6f3c3eaefcab4927a50d1968d437
Use an upper and lower bound for bridge weights

When picking bridges (or other nodes without a consensus entry (and
thus no bandwidth weights)) we shouldn't just trust the node's
descriptor. So far we believed anything between 0 and 10MB/s, where 0
would mean that a node doesn't get any use from use unless it is our
only one, and 10MB/s would be a quite siginficant weight. To make this
situation better, we now believe weights in the range from 20kB/s to
100kB/s. This should allow new bridges to get use more quickly, and
means that it will be harder for bridges to see almost all our traffic.
src/or/routerlist.c