Processing function should return Task
This commit is contained in:
parent
091084cfe2
commit
844c791b16
|
|
@ -39,8 +39,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
|
|||
public void Start()
|
||||
{
|
||||
Log.ConnectionStart(_connectionId);
|
||||
|
||||
Task.Run((Action)_frame.ProcessFraming);
|
||||
Task.Run(_frame.ProcessFraming);
|
||||
_socket.ReadStart(_allocCallback, _readCallback, this);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
|
|||
_responseHeaders.HeaderDate = DateTime.UtcNow.ToString("r");
|
||||
}
|
||||
|
||||
public async void ProcessFraming()
|
||||
public async Task ProcessFraming()
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue