>
> Some notes:
>
> 1. You return NGX_DECLINED from body filter. It's
> just wrong.
>
> 2. You set r->limit_rate dynamically to do actual
> rate limiting.
> Note that this isn't going to work well as
> limit_rate limits
> average download rate for request and not expected
> to be changed
> during downloading.
>
Thanks a lot.
Yes, this is a problem. It will make user experience bad. I'm trying to fix it, but I think it's difficult.