Developer forum

Forum » Integration » web.config execution timeout default setting

web.config execution timeout default setting

Melissa Borgmann
Melissa Borgmann
Reply

Hello,

We have a client wondering why the default execution timeout setting in web.config (Fig. 1) is set to 10 minutes (600 seconds), feeling that this timeframe is too long. I dug up a few threads asking about modifying the value, but none that specifically address the reasoning behind the default setting. Can anyone shed further insight on this?

Figure 1
 

  • https://doc.dynamicweb.com/forum/development/development/scheduledtask-execution-timeout
  • https://doc.dynamicweb.com/forum/integration/integration/thread-was-being-aborted
  • https://doc.dynamicweb.com/forum/integration/integration/forever-running-taskexecute-runner
     

Thank you in advance!


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Melissa

I am not sure there is a solid reasoning behind the current default. We have seen a number of sites that excutes all kinds of weird stuff on e.g. customer receipt pages or in custom apis and those would timeout due to this setting.

For most frontend requests, this setting should be maybe 5-10 seconds max.

I believe you can modify web.config something like this - adding a low timeout per default and increase it for specific paths or handlers (This is .net 4, DW9.)

<configuration>
  <system.web>
    <!-- Short default for everything -->
    <httpRuntime executionTimeout="60" />
  </system.web>

  <!-- Long-runner gets more time -->
  <location path="taskhandler.ashx">
    <system.web>
      <httpRuntime executionTimeout="1800" />
    </system.web>
  </location>
</configuration>

These kind of configurations are very dependent on the actual implementation - so there is really not a very good default that covers majority of scenarios.

BR Nicolai

Votes for this answer: 1

 

You must be logged in to post in the forum