Merge branch 'benaadams/req-delegate' into dev

This commit is contained in:
Stephen Halter 2015-12-02 19:17:16 -08:00
commit bb2c17a779
1 changed files with 7 additions and 1 deletions

View File

@ -254,7 +254,13 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
if (!_requestProcessingStarted)
{
_requestProcessingStarted = true;
_requestProcessingTask = Task.Run(RequestProcessingAsync);
_requestProcessingTask =
Task.Factory.StartNew(
(o) => ((Frame)o).RequestProcessingAsync(),
this,
CancellationToken.None,
TaskCreationOptions.DenyChildAttach,
TaskScheduler.Default);
}
}