Remove Frame._requestProcessingStarted field.
This commit is contained in:
parent
9960cb8c23
commit
1f494b168b
|
|
@ -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,17 +271,13 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void Start()
|
public void Start()
|
||||||
{
|
{
|
||||||
if (!_requestProcessingStarted)
|
_requestProcessingTask =
|
||||||
{
|
Task.Factory.StartNew(
|
||||||
_requestProcessingStarted = true;
|
(o) => ((Frame)o).RequestProcessingAsync(),
|
||||||
_requestProcessingTask =
|
this,
|
||||||
Task.Factory.StartNew(
|
default(CancellationToken),
|
||||||
(o) => ((Frame)o).RequestProcessingAsync(),
|
TaskCreationOptions.DenyChildAttach,
|
||||||
this,
|
TaskScheduler.Default);
|
||||||
default(CancellationToken),
|
|
||||||
TaskCreationOptions.DenyChildAttach,
|
|
||||||
TaskScheduler.Default);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue