소스 검색

note that libevent does not have an an easy way to reset buckets atm

Nick Mathewson 15 년 전
부모
커밋
c93cceb919
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/or/connection_or.c

+ 1 - 0
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 */