[MODULE] limit traffic rate for nginx

bigplum nginx-forum at nginx.us
Sat Dec 18 04:08:44 MSK 2010


> 
> 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.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,159398,159538#msg-159538




More information about the nginx mailing list