[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] [tor/master 34/38] note that libevent does not have an an easy way to reset buckets atm



Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Mon, 27 Sep 2010 12:45:56 -0400
Subject: note that libevent does not have an an easy way to reset buckets atm
Commit: c93cceb9193184a5203848fa74bdde53fb4d77f5

---
 src/or/connection_or.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index 044197d..3e4a6e2 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -401,6 +401,7 @@ connection_or_update_token_buckets_helper(or_connection_t *conn, int reset,
     if (old_cfg)
       ev_token_bucket_cfg_free(old_cfg);
     conn->bucket_cfg = cfg;
+    (void) reset; /* No way to do this with libevent yet. */
   }
 #else
   if (reset) { /* set up the token buckets to be full */
-- 
1.7.1