From 76a408941c98f7d7a1667ac93e9f42acf99a87f9 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sat, 28 Jul 2007 22:14:39 +0000 Subject: [PATCH] r13959@catbus: nickm | 2007-07-28 18:09:56 -0400 Use the correct formula to calculate exit weights. svn:r10956 --- ChangeLog | 3 +++ doc/spec/path-spec.txt | 6 +++++- src/or/routerlist.c | 49 +++++++++++++++++++++--------------------- 3 files changed, 33 insertions(+), 25 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0bb6feb7fa..cf67c4d47a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -43,6 +43,9 @@ Changes in version 0.2.0.3-alpha - 2007-??-?? o Performance improvements: - Be more aggressive with freeing buffer RAM or putting it on the free lists. + - If exit bandwidth ever exceeds one third of total bandwidth, then + use the correct formula to weight exit nodes when choosing paths. + (Based on patch from Mike Perry.) o Performance improvements (win32): - Use Critical Sections rather than Mutexes for synchronizing threads diff --git a/doc/spec/path-spec.txt b/doc/spec/path-spec.txt index 01a2687234..05d9e8dcba 100644 --- a/doc/spec/path-spec.txt +++ b/doc/spec/path-spec.txt @@ -189,7 +189,11 @@ of their choices. on the fraction of bandwidth available from non-Exit nodes. Call the total clipped advertised bandwidth for Exit nodes under consideration E, and the total clipped advertised bandwidth for non-Exit nodes under - consideration N. If E= rand_bw) break;