Re: limit_rate_after support variables

2018-12-10 Thread Miroslav Novy
Hello, your path is very good. I tested it and works fine for as. Reading complex value to the same local variable limit_rate was conflusing for me at first time. But it is correct :) if (r->limit_rate_after == 0 +&& clcf->limit_rate_after +&&

Re: limit_rate_after support variables

2018-10-17 Thread Miroslav Novy
Hello, I prepare patch on actual sources. Settings limit_rate and limit_rate_after works good. Please make code review, our testing and merge to main branche. Thank you Miroslav Nový Example of configration: location / { root /var/www/default/; index index.html index.htm;

Re: limit_rate_after support variables

2018-08-30 Thread Miroslav Novy
Hi, we are interested :) I tried your patch with actual sources, the solution is very similar to my, you just use the functions. It is better. I tried it with this configuration: ... location / { root /var/www/default/; index index.html index.htm; set $my_limit_rate 2k;

Re: limit_rate_after support variables

2018-08-28 Thread Miroslav Novy
Hi, thank you for your patch. I will look at it. Why did not you merge him to repository? Míra po 27. 8. 2018 v 18:00 odesílatel Ruslan Ermilov napsal: > Also, Maxim Dounin reminded me that I prepared the patch set > to add variables support to limit_rate_after roughly a year ago, > which I

Re: limit_rate_after support variables

2018-08-27 Thread Miroslav Novy
r->limit_rate_after = s; +} +} } limit = (off_t) r->limit_rate * (ngx_time() - r->start_sec + 1) po 27. 8. 2018 v 13:28 odesílatel Ruslan Ermilov napsal: > Hi, > > On Tue, Aug 14, 2018 at 10:22:14AM +0200, Miroslav Novy wrote:

limit_rate_after support variables

2018-08-14 Thread Miroslav Novy
# HG changeset patch # User Miroslav Nový # Date 1534234559 0 # Tue Aug 14 08:15:59 2018 + # Node ID 1a8327b50f7844cbe68226f54de60632189327f4 # Parent 70c6b08973a02551612da4a4273757dc77c70ae2 limit_rate_after support variables Example of use: location / { root /var/www/default/;

Added limit_rate_after as variable

2018-07-26 Thread Miroslav Novy
# HG changeset patch # User Miroslav Nový # Date 1532521218 0 # Wed Jul 25 12:20:18 2018 + # Node ID f5da29b630f779ab294cc7ff78213a175976424c # Parent f7e79596baf209151682f2f7d220161c034657ac Added limit_rate_after as variable diff -r f7e79596baf2 -r f5da29b630f7