proxy_pass 200ms time out

39 views
Skip to first unread message

Mike Vu

unread,
Dec 6, 2016, 9:03:58 PM12/6/16
to openresty-en
Hi Guys, 
We are trying to set 200ms time out for proxy pass in nginx.conf 
Here is the config
                           location /test_timeout {
                      proxy_pass http://192.168.16.253/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 

Robert Paprocki

unread,
Dec 7, 2016, 11:44:31 AM12/7/16
to openre...@googlegroups.com
Hi,

"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!

Mike Vu

unread,
Dec 7, 2016, 2:44:28 PM12/7/16
to openresty-en, rob...@cryptobells.com
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
Reply all
Reply to author
Forward
0 new messages