Welcome! Log In Create A New Profile

Advanced

Serve multiple requests from a single proxy request

August 31, 2018 05:02AM
Hello,
I'm wondering if nginx is able to serve multiple requests from a single proxy request before it completes.

I am using the following configuration:

proxy_cache_lock on;
proxy_cache_lock_timeout 5s;
proxy_cache ram;
proxy_pass myUpstream;

My upstream uses chunked transfer encoding and serve the request in 10 sec.
Now if I try to send 2 requests to nginx, the first one starts responding immediately but the second will starts 5 sec later (lock timeout) and then perform a second request to my upstream.

Is there a way to configure nginx to immediately respond to multiple requests with a single request to my upstream?

Thank you in advance,
Traquila
Subject Author Posted

Serve multiple requests from a single proxy request

traquila August 31, 2018 05:02AM

Re: Serve multiple requests from a single proxy request

Roman Arutyunyan August 31, 2018 08:08AM

Re: Serve multiple requests from a single proxy request

traquila August 31, 2018 11:29AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 80
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready