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.
Subject Author Posted

[MODULE] limit traffic rate for nginx

bigplum December 17, 2010 09:17AM

Re: [MODULE] limit traffic rate for nginx

Maxim Dounin December 17, 2010 05:32PM

Re: [MODULE] limit traffic rate for nginx

bigplum December 17, 2010 08:08PM

Re: [MODULE] limit traffic rate for nginx

bigplum January 09, 2011 09:31PM

Re: [MODULE] limit traffic rate for nginx

Piotr Karbowski January 11, 2011 05:40AM

Re: [MODULE] limit traffic rate for nginx

bigplum May 31, 2013 05:37AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 198
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready