Processing function should return Task

This commit is contained in:
Louis DeJardin 2015-09-19 11:20:42 -07:00
parent 091084cfe2
commit 844c791b16
2 changed files with 2 additions and 3 deletions

View File

@ -39,8 +39,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
public void Start() public void Start()
{ {
Log.ConnectionStart(_connectionId); Log.ConnectionStart(_connectionId);
Task.Run(_frame.ProcessFraming);
Task.Run((Action)_frame.ProcessFraming);
_socket.ReadStart(_allocCallback, _readCallback, this); _socket.ReadStart(_allocCallback, _readCallback, this);
} }

View File

@ -99,7 +99,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
_responseHeaders.HeaderDate = DateTime.UtcNow.ToString("r"); _responseHeaders.HeaderDate = DateTime.UtcNow.ToString("r");
} }
public async void ProcessFraming() public async Task ProcessFraming()
{ {
try try
{ {