implement download rate limit.

Signed-off-by: Jack <jack.wgm@gmail.com>