# Connect\_timeout option for proxy\_next\_upstream

**URL:** <https://www.ruby-forum.com/t/connect-timeout-option-for-proxy-next-upstream/225082>\
**Category:** NGINX\
**Created:** [December 11, 2012, 10:15pm UTC](https://www.ruby-forum.com/t/connect-timeout-option-for-proxy-next-upstream/225082 "2012-12-11T22:15:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [December 11, 2012, 10:15pm UTC](https://www.ruby-forum.com/t/connect-timeout-option-for-proxy-next-upstream/225082/1 "2012-12-11T22:15:56Z")

</div>

I posted this question in another thread but I received no answer, sorry  
to  
ask again.

On my current set up, I’m using the timeout option to make sure the  
request  
is passed to the next upstream if the first server is down.  
If the request is hanging, it’s possible the request coming in is a bad  
request, which could potentially slow down the whole cluster.  
I would like to go to the next upstream only on connection timeout.  
I wonder if you could provide two additional options, “read\_timeout” and  
“connect\_timeout”, leaving “timeout” unchanged.

Posted at Nginx Forum:

> **[connect\_timeout option for proxy\_next\_upstream](https://forum.nginx.org/read.php?2,233894,233894#msg-233894)**
>
> I posted this question in another thread but I received no answer, sorry to ask again. On my current set up, I'm using the timeout option to make sure the request is passed to the next upstream if the first server is down. If the request is hanging,...
