Welcome! Log In Create A New Profile

Advanced

How to disable request pipelining on upstream

Posted by hkahlouche 
How to disable request pipelining on upstream
August 27, 2016 03:38PM
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!
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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