How to disable request pipelining on nginx upstream

Maxim Dounin mdounin at
Mon Aug 29 14:32:17 UTC 2016


On Mon, Aug 29, 2016 at 10:04:08AM -0400, hkahlouche wrote:

> Thanks for your prompt response.
> Let's a client is sending pipelined requests on the client side and nginx
> has multiple upstream keepalive connections.
> Are you saying that NGINX will NOT pipeline on upstream side even though it
> is receiving pipelined requests on client side?

Yes, nginx will process requests one-by-one and won't pipeline 
requests to upstream.

> Is there a way to close an upstream keepalive after a threshold of requests
> is reached (*max requests") same as keepalive_requests on client side? Is
> there a reason why this feature is not present? 

No, it's not something currently implemented.  It's not considered 
needed as upstream servers can be easily configured to do this 

Maxim Dounin

More information about the nginx mailing list