[or-cvs] Go into soft hibernation after 95% of the bandwidth is used,

Roger Dingledine arma at seul.org
Tue Feb 1 02:45:31 UTC 2005


Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or

Modified Files:
	hibernate.c 
Log Message:
Go into soft hibernation after 95% of the bandwidth is used,
not 99%. This is especially important for daily hibernators who
have a small accounting max. Hopefully it will result in fewer
cut connections when the hard hibernation starts.


Index: hibernate.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/hibernate.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- hibernate.c	14 Jan 2005 17:49:25 -0000	1.42
+++ hibernate.c	1 Feb 2005 02:45:28 -0000	1.43
@@ -641,7 +641,7 @@
  * to send/receive this interval. */
 static int hibernate_soft_limit_reached(void)
 {
-  uint64_t soft_limit = (uint64_t) ((get_options()->AccountingMax) * .99);
+  uint64_t soft_limit = (uint64_t) ((get_options()->AccountingMax) * .95);
   if (!soft_limit)
     return 0;
   return n_bytes_read_in_interval >= soft_limit



More information about the tor-commits mailing list