Skip to content
Snippets Groups Projects
  1. May 08, 2018
  2. May 07, 2018
  3. May 02, 2018
  4. May 01, 2018
  5. Apr 30, 2018
  6. Apr 29, 2018
  7. Apr 27, 2018
  8. Apr 26, 2018
  9. Apr 23, 2018
  10. Apr 22, 2018
  11. Apr 20, 2018
  12. Apr 18, 2018
  13. Apr 17, 2018
    • Nick Mathewson's avatar
      Remove the periodic refill event entirely. · 47df912f
      Nick Mathewson authored
      Now that we update our buckets on demand before reading or writing,
      we no longer need to update them all every TokenBucketRefillInterval
      msec.
      
      When a connection runs out of bandwidth, we do need a way to
      reenable it, however.  We do this by scheduling a timer to reenable
      all blocked connections for TokenBucketRefillInterval msec after a
      connection becomes blocked.
      
      (If we were using PerConnBWRate more, it might make sense to have a
      per-connection timer, rather than a single timeout. But since
      PerConnBWRate is currently (mostly) unused, I'm going to go for the
      simpler approach here, since usually whenever one connection has
      become blocked on bandwidth, most connections are blocked on
      bandwidth.)
      
      Implements ticket 25373.
      47df912f
    • Nick Mathewson's avatar
      Refactor responsibility for checking global write bucket emptiness · 9af4cd6f
      Nick Mathewson authored
      We used to do this 10x per second in connection_buckets_refill();
      instead, we now do it when the bucket becomes empty. This change is
      part of the work of making connection_buckets_refill() obsolete.
      
      Closes ticket 25828; bugfix on 0.2.3.5-alpha.
      9af4cd6f
Loading