Mysterious proxy timeout at 2 min

Maxim Dounin mdounin at
Wed Aug 24 10:09:02 UTC 2011


On Wed, Aug 24, 2011 at 12:06:13PM +0200, Thomas Love wrote:

> Hello
> I am configuring nginx to proxy to a node.js server which I am using
> for long-polling. I want nginx to hold the connection open just over 5
> minutes so that the node server can respond with content, or at least
> a 204, when it's good and ready.
> But nginx/1.1.0 keeps canceling with a 502 after exactly 2 minutes. I
> can't find a a 2-minute timeout anywhere in my config.

Error 502 suggests it's not nginx timeout (error will be 504 then) 
but backend's one.

Maxim Dounin

More information about the nginx mailing list