Upstream Keepalive connection close

Maxim Dounin mdounin at
Wed Feb 25 14:40:21 UTC 2015


On Mon, Feb 23, 2015 at 07:27:25AM -0500, Gona wrote:

> Hi Maxim,
> If possible I would like to use a keep-alive connection timeout less than
> that of the backend servers to avoid premature connection close by backend
> server. As mentioned before,  I am trying to avoid other options like
> rerouting using proxy_next_upstream or retrying by downstream client.
> Is there a way to set a timeout on keep-alive connections to backend
> servers? Or even force close or invalidate the connection cache from code? 

As of now, there is no such option.  If the problem you are trying 
to solve is practical, it would be mostly trivial to add one.

Maxim Dounin

More information about the nginx mailing list