Chris Dixon
Chris Dixon

Reputation: 9167

Async controller/page timeouts .NET MVC 6 (vNext).

Currently I'm trying to implement a longer page timeout (due to a rather large file upload) in MVC 6 in an Async controller and it seems the trusty ol' [AsyncTimeout] attribute does not exist any more in vNext.

I've scoured the net for answers on this and found nothing so far, has anyone found a solution?

Upvotes: 2

Views: 898

Answers (2)

Tom
Tom

Reputation: 836

Its not ideal, but you can deal with this issue by increasing the timeout globally on the httpHandler config. Obviously this is only for hosting in IIS.

<httpPlatform processPath="%DNX_PATH%" arguments="%DNX_ARGS%" forwardWindowsAuthToken="false" startupTimeLimit="3600" requestTimeout="00:05:00" />

Upvotes: 2

CodedBeard
CodedBeard

Reputation: 912

Looks like the feature was canned until a latter date due to some issues, see the discussion on the MVC repo

Upvotes: 2

Related Questions