Connect_timeout option for proxy_next_upstream

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: