Setting executionTimeout or connectionTimeout for a node application

Answered Setting executionTimeout or connectionTimeout for a node application

  • Thursday, August 09, 2012 9:33 AM
     
     

    Hello,

    We have a node application using iisnode 0.1.21 and we're trying to lower the connection or execution timeout (on IIS 7.5)

    Right now it's set to the default (120 s) but we've been unable to change that setting. 

    executionTimeout seems to be specific to asp.net and is not acknowledged by IIS, and connectionTimeout ( http://www.iis.net/ConfigReference/system.applicationHost/sites/siteDefaults/limits )does not work either. When we change the value, the actual timeout is still set to 120s.

All Replies

  • Thursday, August 09, 2012 12:33 PM
     
     Answered Has Code

    If you would like to modify any IIS settings on role config, you can have start up tasks to do so.

    For example as described in the article create a command file with the following command (bat file or cmd file) and configure it as start up task

    appcmd.exe set config -section:system.applicationHost/sites/siteDefaults.limits.connectionTimeout:"00:03:00" /commit:apphost
    

    Configure tasks up task.

    <WebRole name="WebRole1">
          <Startup>
             <Task commandLine="Startup.cmd" executionContext="elevated" taskType="simple">
             </Task>
          </Startup>
    
    Hope it helps.


    Please mark the replies as Answered if they help and Vote if you found them helpful.