Welcome! Log In Create A New Profile

Advanced

How to disable request pipelining on nginx upstream

August 28, 2016 08:22AM
Hi,

Does anyone know a way to disable HTTP request pipelining on a same upstream backend connection?

Let's say we have the below upstream backend that is configured with keepalive and no connection close:

upstream http_backend {
server 127.0.0.1:8080;
keepalive 10;
}

server {
...
location /http/ {
proxy_pass http://http_backend;
proxy_http_version 1.1;
proxy_set_header Connection "";
...
}
}

According to this configuration: NGINX sets the maximum number of 10 idle keepalive connections to upstream servers that are preserved in the cache of each worker process. When this number is exceeded, the least recently used connections are closed.

The question I have is: how can we disable NGIX to pipeline multiple HTTP requests on the same upstream keepalive connection?
I would like to keep the upstream keepalive but just disable pipelining. Please let me know how we could do that.

Thank you!
Subject Author Posted

How to disable request pipelining on nginx upstream

hkahlouche August 28, 2016 08:22AM

Re: How to disable request pipelining on nginx upstream

Maxim Dounin August 28, 2016 09:54AM

Re: How to disable request pipelining on nginx upstream

hkahlouche August 29, 2016 10:04AM

Re: How to disable request pipelining on nginx upstream

Maxim Dounin August 29, 2016 10:34AM

Re: How to disable request pipelining on nginx upstream

Phani Sreenivasa Prasad August 29, 2016 10:41AM

Re: How to disable request pipelining on nginx upstream

hkahlouche August 29, 2016 12:23PM

Re: How to disable request pipelining on nginx upstream

Maxim Dounin August 29, 2016 02:34PM

Re: How to disable request pipelining on nginx upstream

hkahlouche August 29, 2016 03:52PM

Re: How to disable request pipelining on nginx upstream

hkahlouche September 15, 2016 05:12PM

Re: How to disable request pipelining on nginx upstream

B.R. September 16, 2016 03:26AM

Re: How to disable request pipelining on nginx upstream

hkahlouche September 16, 2016 08:41AM

Re: How to disable request pipelining on nginx upstream

Valentin V. Bartenev September 18, 2016 01:26PM

Re: How to disable request pipelining on nginx upstream

nginx_newbie1 August 05, 2021 03:50AM

Re: How to disable request pipelining on nginx upstream

nginx_newbie1 August 05, 2021 03:57AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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