limit_rate for POST targets ?

Justin justinbeech at gmail.com
Sat Apr 11 11:50:17 UTC 2015


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 at 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 at 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 at 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 at nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
> 
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20150411/b2849eec/attachment.html>


More information about the nginx mailing list