Skip to content

Commit

Permalink
Fix StreamPool_MultipleStreamsConcurrent_StreamsReturnedToPool (#57473)
Browse files Browse the repository at this point in the history
Wait for streams to complete before triggering a pool update since they won't be eligible for reuse if they haven't completed.

For #39477
  • Loading branch information
amcasey authored Aug 23, 2024
1 parent 8a9be3d commit 30fb87c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,8 @@ await ExpectAsync(Http2FrameType.DATA,
withFlags: (byte)Http2DataFrameFlags.END_STREAM,
withStreamId: 3);

await WaitForAllStreamsAsync().DefaultTimeout();

// TriggerTick will trigger the stream to be returned to the pool so we can assert it
TriggerTick();

Expand Down

0 comments on commit 30fb87c

Please sign in to comment.