Dispose of the existing native context before creating a new one.

This commit is contained in:
Chris Ross (ASP.NET) 2017-10-30 21:41:31 -07:00
parent 99fc843cc5
commit 02331040a1
1 changed files with 1 additions and 0 deletions

View File

@ -184,6 +184,7 @@ namespace Microsoft.AspNetCore.Server.HttpSys
internal void AllocateNativeRequest(uint? size = null, ulong requestId = 0) internal void AllocateNativeRequest(uint? size = null, ulong requestId = 0)
{ {
_nativeRequestContext?.Dispose();
//Debug.Assert(size != 0, "unexpected size"); //Debug.Assert(size != 0, "unexpected size");
// We can't reuse overlapped objects // We can't reuse overlapped objects