We need to time out the request to proxy server when it exceeds 200ms regardless of connection issue or proxy processing time but sometimes it works as expected and sometimes it does not. The same issue can be found here https://forum.nginx.org/read.php?2,29171,29181 i think
Thanks
On Wednesday, December 7, 2016 at 8:44:31 AM UTC-8, rpaprocki wrote:
Hi,
On Tue, Dec 6, 2016 at 6:03 PM, Mike Vu
<mi...@admedia.com> wrote:
Hi Guys,
We are trying to set 200ms time out for proxy pass in nginx.conf
Here is the config
location /test_timeout {
proxy_connect_timeout 200ms;
proxy_read_timeout 200ms;
interesting thing is it works intermittently, we have tried to disable cache and played with the other settings but no luck
any help will be appreciated
Thanks
Mike
"Works intermittently" or "doesn't work" are pretty useless phrases that don't really describe the situation. Can you describe the issue you're seeing with more detail? Doesn't the connection to the upstream take too long? Does it not time out when it should? Does it time out when it shouldn't? Does the connection fail entirely? Did the server make a mistake and put sausage in your omelette instead of bacon?
More details about the context and problem, and a complete, minimal configuration that can be used to duplicate the problem will be most helpful.
Cheers!