mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-08-01 19:06:11 +08:00
Increase request timeout for Setup
When running long recipes, the default asp.net request timeout length might not be sufficient. Increasing to 10 minutes on this specific request.
This commit is contained in:
parent
2e60db7ee9
commit
1e3b56fb15
@ -11,7 +11,6 @@ using Orchard.Setup.ViewModels;
|
||||
using Orchard.Localization;
|
||||
using Orchard.Themes;
|
||||
using Orchard.UI.Notify;
|
||||
using Orchard.Utility.Extensions;
|
||||
|
||||
namespace Orchard.Setup.Controllers {
|
||||
[ValidateInput(false), Themed]
|
||||
@ -72,6 +71,9 @@ namespace Orchard.Setup.Controllers {
|
||||
|
||||
[HttpPost, ActionName("Index")]
|
||||
public ActionResult IndexPOST(SetupViewModel model) {
|
||||
// sets the setup request timeout to 10 minutes to give enough time to execute custom recipes.
|
||||
HttpContext.Server.ScriptTimeout = 600;
|
||||
|
||||
var recipes = OrderRecipes(_setupService.Recipes());
|
||||
|
||||
// if no builtin provider, a connection string is mandatory
|
||||
|
Loading…
Reference in New Issue
Block a user