[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] backport the fix where we don"t mind if bandwidthburst == b...
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] backport the fix where we don"t mind if bandwidthburst == b...
- From: arma@xxxxxxxx (Roger Dingledine)
- Date: Fri, 4 Feb 2005 02:15:42 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Fri, 04 Feb 2005 02:15:59 -0500
- Reply-to: or-dev@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/0091/tor/src/or
Modified Files:
Tag: tor-0_0_9-patches
config.c
Log Message:
backport the fix where we don't mind if bandwidthburst == bandwidthrate
Index: config.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.286.2.8
retrieving revision 1.286.2.9
diff -u -d -r1.286.2.8 -r1.286.2.9
--- config.c 4 Feb 2005 00:56:23 -0000 1.286.2.8
+++ config.c 4 Feb 2005 07:15:40 -0000 1.286.2.9
@@ -1377,8 +1377,8 @@
result = -1;
}
- if (2*options->BandwidthRate >= options->BandwidthBurst) {
- log(LOG_WARN,"BandwidthBurst must be more than twice BandwidthRate.");
+ if (options->BandwidthRate > options->BandwidthBurst) {
+ log(LOG_WARN,"BandwidthBurst must be at least equal to BandwidthRate.");
result = -1;
}
if (options->BandwidthRate > INT_MAX) {