Merge branch 'release' into dev
This commit is contained in:
commit
b9c2b29152
|
|
@ -154,9 +154,9 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http
|
||||||
{
|
{
|
||||||
// Frame.Abort calls user code while this method is always
|
// Frame.Abort calls user code while this method is always
|
||||||
// called from a libuv thread.
|
// called from a libuv thread.
|
||||||
System.Threading.ThreadPool.QueueUserWorkItem(state =>
|
ThreadPool.Run(() =>
|
||||||
{
|
{
|
||||||
var connection = (Connection)state;
|
var connection = this;
|
||||||
|
|
||||||
lock (connection._stateLock)
|
lock (connection._stateLock)
|
||||||
{
|
{
|
||||||
|
|
@ -166,10 +166,10 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
connection._frame.Abort();
|
connection._frame?.Abort();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, this);
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Called on Libuv thread
|
// Called on Libuv thread
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue