Repository navigation
Description
Describe the bug
Failure
QuicStreamContextTests.BidirectionalStream_MultipleStreamsOnConnection_ReusedFromPool intermittently received a new stream context instead of reusing the first one, failing the final-head Linux CI build. This is the exact behavior previously tracked by dotnet#59978 and unquarantined after a 30-build passing period.
Possible cause
The failed log shows the first stream's write side was aborted by the peer with error code 0 before disposal, so QuicStreamContext.CanReuse was false and the context was not returned to the connection pool. The source of that peer abort is unconfirmed; it may be transient MsQuic/client-stream shutdown behavior rather than a repository ordering bug.
Affected builds and PRs
| PR | PR target branch | Build(s) | Notes |
|---|---|---|---|
| dotnet/aspnetcore#70441 | main |
Failed build 1673322 | Ubuntu 24.04 amd64 Helix, job e8a975af-8122-46d5-a493-117c029090ba, work item batch_4--net12.0; Assert.Same() failed at QuicStreamContextTests.cs:244. |
Evidence
The Helix console log shows the first stream was accepted, then reported write aborted by peer with error code 0; the second stream was accepted as a distinct context, and the identity assertion failed. The same test, assertion, and stack were documented in dotnet#59978, which was closed after 270 passes across 30 builds rather than a causal code fix.
Decision
No prototype for this run. This is one recurrence after a long passing period, and the current evidence does not identify a narrow repository correction: waiting for the pool would not make an aborted stream reusable, while retries or weakened assertions would hide the failure. Reconsider a targeted diagnostic or fix if another occurrence supplies MsQuic shutdown evidence or demonstrates a reproducible repository-side ordering mechanism.
To Reproduce
Run QuicStreamContextTests.BidirectionalStream_MultipleStreamsOnConnection_ReusedFromPool on Linux with MsQuic and observe whether the first gracefully completed stream is returned to the connection pool before the second stream is accepted.
Expected behavior
The first bidirectional stream completes without an abort, is returned to the pool, and is reused for the second stream.
Screenshots
N/A
Additional context
Upstream historical tracker: dotnet#59978. The original Ubuntu 24.04 amd64 Helix environment and MsQuic instrumentation are unavailable on this Windows host.
Activity