Mysterious proxy timeout at 2 min

Thomas Love tomlove at gmail.com
Wed Aug 24 10:39:39 UTC 2011


On 24 August 2011 12:12, Thomas Love <tomlove at gmail.com> wrote:
> On 24 August 2011 12:09, Maxim Dounin <mdounin at mdounin.ru> wrote:
>
>> Error 502 suggests it's not nginx timeout (error will be 504 then)
>> but backend's one.
>>
>> Maxim Dounin
>
> Thanks. I thought it might be. I'm scouring node...
>
> Thomas
>

Found it. For any other node fanboys: there's a hardcoded 120-second
idle timeout in node.js's http.js, and to change it, call

request.socket.setTimeout(seconds * 1000);

Thomas



More information about the nginx mailing list