summaryrefslogtreecommitdiff
path: root/ratelim-internal.h
Commit message (Collapse)AuthorAgeFilesLines
* Use relative includes instead of system includes consistently.Evan Jones2010-12-021-1/+1
|
* Make rate-limits go up to SIZE_MAX/EV_SSIZE_MAX, not just INT32_MAXNick Mathewson2010-10-261-5/+5
| | | | | | | | Someday, when networks are far faster and people frequently want a burst value greater than 2GB per tick, this will seem very forsightful indeed. For now, it breaks ABI, but not source. Fixes bug 3092096.
* Fix a nasty dangling-event bug when using rate-limiting groupsNick Mathewson2010-08-091-0/+3
| | | | | | | | | | | | When we freed a bufferevent that was in a rate-limiting group and blocked on IO, the process of freeing it caused it to get removed from the group. But removing the bufferevent from the group made its limits get removed, which could make it get un-suspended and in turn cause its events to get re-added. Since we would then immediately _free_ the events, this would result in dangling pointers. Fixes bug 3041007.
* Update all our copyright notices to say "2010"Nick Mathewson2010-03-041-1/+1
|
* Rate-limiting for bufferevents; group and individual limits are supported.Nick Mathewson2009-12-281-0/+102
The fairness algorithms are not the best, not every bufferevent type is supported, and some of the locking tricks here are simply absurd. Still, this code should be a good first step.