Remove Frame._requestProcessingStarted field.

This commit is contained in:
Cesar Blum Silveira 2016-05-18 21:41:38 -07:00
parent 9960cb8c23
commit 1f494b168b
1 changed files with 7 additions and 12 deletions

View File

@ -50,7 +50,6 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http
protected List<KeyValuePair<Func<object, Task>, object>> _onCompleted; protected List<KeyValuePair<Func<object, Task>, object>> _onCompleted;
private bool _requestProcessingStarted;
private Task _requestProcessingTask; private Task _requestProcessingTask;
protected volatile bool _requestProcessingStopping; // volatile, see: https://msdn.microsoft.com/en-us/library/x13ttww7.aspx protected volatile bool _requestProcessingStopping; // volatile, see: https://msdn.microsoft.com/en-us/library/x13ttww7.aspx
protected int _requestAborted; protected int _requestAborted;
@ -272,9 +271,6 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http
/// </summary> /// </summary>
public void Start() public void Start()
{ {
if (!_requestProcessingStarted)
{
_requestProcessingStarted = true;
_requestProcessingTask = _requestProcessingTask =
Task.Factory.StartNew( Task.Factory.StartNew(
(o) => ((Frame)o).RequestProcessingAsync(), (o) => ((Frame)o).RequestProcessingAsync(),
@ -283,7 +279,6 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http
TaskCreationOptions.DenyChildAttach, TaskCreationOptions.DenyChildAttach,
TaskScheduler.Default); TaskScheduler.Default);
} }
}
/// <summary> /// <summary>
/// Should be called when the server wants to initiate a shutdown. The Task returned will /// Should be called when the server wants to initiate a shutdown. The Task returned will