Welcome! Log In Create A New Profile

Advanced

Re: [MODULE] limit traffic rate for nginx

May 31, 2013 05:37AM
Hi guys,

Some days ago, one of this module users complaint about the unfair speed for multi-connections. So I have some time to realize a new method to limit download rate.

In the new code, if last second speed is lager than max rate, the timer is added in this module, and the body filter will return.
So nothing will be sent to client, and do not use the r->limit_rate in write_filter to limit sendfile size.

And clcf->sendfile_max_chunk also is modified by the maximum rate.

I am not sure, is there any side-effect about this method?

https://github.com/bigplum/Nginx-limit-traffic-rate-module/blob/v1.0/ngx_http_limit_traffic_rate_filter_module.c

--
Best Regard.
SubjectAuthorPosted

[MODULE] limit traffic rate for nginx

bigplumDecember 17, 2010 09:17AM

Re: [MODULE] limit traffic rate for nginx

Maxim DouninDecember 17, 2010 05:32PM

Re: [MODULE] limit traffic rate for nginx

bigplumDecember 17, 2010 08:08PM

Re: [MODULE] limit traffic rate for nginx

bigplumJanuary 09, 2011 09:31PM

Re: [MODULE] limit traffic rate for nginx

Piotr KarbowskiJanuary 11, 2011 05:40AM

Re: [MODULE] limit traffic rate for nginx

bigplumMay 31, 2013 05:37AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 99
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 184 on July 08, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready