# Add proxy\_next\_upstream\_action to distinguish diffrient network actions

**URL:** <https://www.ruby-forum.com/t/add-proxy-next-upstream-action-to-distinguish-diffrient-network-actions/238522>\
**Category:** NGINX\
**Created:** [January 15, 2014, 9:42am UTC](https://www.ruby-forum.com/t/add-proxy-next-upstream-action-to-distinguish-diffrient-network-actions/238522 "2014-01-15T09:42:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [January 15, 2014, 9:42am UTC](https://www.ruby-forum.com/t/add-proxy-next-upstream-action-to-distinguish-diffrient-network-actions/238522/1 "2014-01-15T09:42:47Z")

</div>

Hi all:

The directive “proxy\_next\_upstream error timeout” takes effect on three  
network actions: connection, send and recieve. In practice ,we realy  
want  
to try next upstream according to in which actions we are. For example,  
I  
do not want to try next upstream if some error occurs or timed out when  
recieving response from upstream, otherwise it maybe duplicate my  
request .

The proxy\_next\_upstream\_action is involved to address this problem , the  
directive takes one or more parameter : conn, send, recv which indicates  
whether we should try next upstream.

Usage:  
proxy\_next\_upstream error timeout;  
proxy\_next\_upstream\_action conn;  
Try next upstream if error or timed out on connection.

Anyone suggests ?

---

<div class="post-metadata">

**Author:** ![Shafreeck\_Sea](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/4af34b/32.png) [@Shafreeck\_Sea](https://www.ruby-forum.com/u/Shafreeck_Sea)\
**Post date:** [January 17, 2014, 10:11am UTC](https://www.ruby-forum.com/t/add-proxy-next-upstream-action-to-distinguish-diffrient-network-actions/238522/2 "2014-01-17T10:11:56Z")

</div>

Anyone will be interested in this ?

Posted at Nginx Forum:

> **[Re: Add proxy\_next\_upstream\_action to distinguish diffrient network actions](https://forum.nginx.org/read.php?2,246461,246552#msg-246552)**
>
> Hi all: The directive "proxy\_next\_upstream error timeout" takes effect on three network actions: connection, send and recieve. In practice ,we realy want to try next upstream according to in which actions we are. For example, I do not want...
