Welcome! Log In Create A New Profile

Advanced

Re: limit_rate for POST targets ?

Justin
April 11, 2015 07:52AM
limit_rate it only applies to GET
( and works great )

"response transmission to a client"

but not POST (reading data from a client)

> On 11 Apr 2015, at 9:24 pm, B.R. <reallfqq-nginx@yahoo.fr> wrote:
>
> The docs suggest using 'if', even though it is uncertain under which conditions this directive works/should be used or not...
>
> You could either set the logic in 'if' or use a map matching the $http_method variable and setting an intermediary variable which will be used in turn by 'if' to set the rate_limit feature or not.
> ​That is the most efficient way of doing that I can think of.​
> ---
> B. R.
>
>> On Fri, Apr 10, 2015 at 11:22 PM, jb <justinbeech@gmail.com> wrote:
>> Anyone? no ideas?
>>
>> how would i go about getting such a feature added. I imagine it would be much the same code, just applied to reading the request body rather than writing it. And since it is core functionality I'm not sure one for POST should be an extension?
>>
>>> On Wed, Apr 8, 2015 at 4:23 PM, jb <justinbeech@gmail.com> wrote:
>>> Is there a module that does throttled reading for POST and works the same way as limit_rate does for GET (per stream, X bytes per second).
>>>
>>> I got some kind of throttle effect by putting a usleep() into the os/unix/ngx_recv.c file reader, but I want to use something that works the same way as limit_rate.
>>>
>>> thanks
>>
>>
>> _______________________________________________
>> nginx mailing list
>> nginx@nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

limit_rate for POST targets ?

jb April 08, 2015 02:26AM

Re: limit_rate for POST targets ?

jb April 10, 2015 05:24PM

Re: limit_rate for POST targets ?

B.R. April 11, 2015 07:26AM

Re: limit_rate for POST targets ?

Justin April 11, 2015 07:52AM

Re: limit_rate for POST targets ?

itpp2012 April 11, 2015 08:13AM

Re: limit_rate for POST targets ?

Justin April 11, 2015 08:26AM

Re: limit_rate for POST targets ?

B.R. April 13, 2015 01:06PM

Re: limit_rate for POST targets ?

jb April 13, 2015 09:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 226
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