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

Commit 5db6394

Browse files
authored
Always decrement count on HTTP/2 stream completion (#3087)
#3079
1 parent 4d2e686 commit 5db6394

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,11 +1045,11 @@ void IHttp2StreamLifetimeHandler.OnStreamCompleted(int streamId)
10451045
{
10461046
lock (_stateLock)
10471047
{
1048+
_activeStreamCount--;
1049+
10481050
// Get, Add, Remove so the steam is always registered in at least one collection at a time.
10491051
if (_streams.TryGetValue(streamId, out var stream))
10501052
{
1051-
_activeStreamCount--;
1052-
10531053
if (stream.IsDraining)
10541054
{
10551055
stream.DrainExpiration =

0 commit comments

Comments
 (0)