Welcome! Log In Create A New Profile

Advanced

Iimit_rate for POST operations

Posted by Jakub Mroziński 
Jakub Mroziński
Iimit_rate for POST operations
July 04, 2018 06:00PM
Hi,
I would like to throttle requests POSTed by clients. Currently limit_rate is only working on traffic from server to client (download), is there any specific reason for that it can’t limit “upload”?

I have tested that using simple calls “curl -X POST [email protected]”, POST requests were handled by backend over proxy_pass.

BR

jm
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Maxim Dounin
Re: Iimit_rate for POST operations
July 04, 2018 06:40PM
Hello!

On Wed, Jul 04, 2018 at 05:56:02PM +0200, Jakub Mroziński wrote:

> I would like to throttle requests POSTed by clients. Currently
> limit_rate is only working on traffic from server to client
> (download), is there any specific reason for that it can’t limit
> “upload”?

The most specific reason is that it's not something implemented,
mostly because use cases which require upload limiting are quite
rare in HTTP. And if implemented, it should be called
differently, as upload and download limiting are quite different
things, and using the same directive to control both looks like a
bad idea.

Upload limiting is currently only available in the stream proxy,
see http://nginx.org/r/proxy_upload_rate.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Sorry, only registered users may post in this forum.

Click here to login