Magnus Klaar's rate limiter code from etorrent
Erlang Makefile
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
test
.gitignore
Makefile
README.md
erlang.mk
rebar.config

README.md

Rate limitation

Rlimit is a rate limitation system which keeps track of rates for underlying processes. Its main use is inside the etorrent application for rate limiting the upstream so you don't overrun a slow line.

It implements a delay RED regulator on top of a Token Bucket Regulator, so when the rate limit is approached, the chance of a delay to happen becomes gradually higher and higher.