Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Commit 2b87e7b

Browse files
committed
Remove invalid Debug.Assert in Http2Connection (#3080)
The _streams dictionary may not contain the completing stream in OnStreamCompleted since the IsDraining flag is applied beforehand which allows it to be removed by the request processing thread.
1 parent 50bb0b3 commit 2b87e7b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Kestrel.Core/Internal/Http2/Http2Connection.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,10 +1062,6 @@ void IHttp2StreamLifetimeHandler.OnStreamCompleted(int streamId)
10621062
_streams.TryRemove(streamId, out _);
10631063
}
10641064
}
1065-
else
1066-
{
1067-
Debug.Assert(false, "Missing stream");
1068-
}
10691065

10701066
if (_activeStreamCount == 0)
10711067
{

0 commit comments

Comments
 (0)