#5503: Increased server script timeout on Import action.

Fixes #5503
This commit is contained in:
Sipke Schoorstra
2015-07-16 17:47:54 +01:00
parent 76b7121935
commit 50002ee10d
2 changed files with 4 additions and 1 deletions

View File

@@ -53,6 +53,9 @@ namespace Orchard.ImportExport.Controllers {
}
if (ModelState.IsValid) {
// Sets the request timeout to 10 minutes to give enough time to execute custom recipes.
Services.WorkContext.HttpContext.Server.ScriptTimeout = 600;
var executionId = _importExportService.Import(new StreamReader(Request.Files["RecipeFile"].InputStream).ReadToEnd());
return RedirectToAction("ImportResult", new { executionId = executionId });
}