News for hackers. Stuff that matters.
Re:Nginx-1.4.0 stable version has been released by derefr on Wednesday April 24, 2013 @12:59PM (#5602556)
EDIT: the parent originally said "proxy_read_timeout", and this comment was in response to that.

proxy_read_timeout times out reads from the upstream. It will trigger when a backend server goes AWOL, not when a client falls off the net.

If you want to detect client-side disconnection, you want proxy_send_timeout.

You can emulate this by having server sent heartbeats with a proxy_read_timeout with the client required to respond to them before the server will send any more, thus going read-silent whenever the client fails to respond, but why not just have the client do the pinging? Then the server doesn't have to say anything in response most of the time.

Re:Nginx-1.4.0 stable version has been released by ushi on Wednesday April 24, 2013 @01:14PM (#5602650)
> but why not just have the client do the pinging?

That's exactly what i meant. Sorry if it was unclear. I accidentally switched proxy_send_timeout and proxy_read_timeout.