dotnet / dotnet/aspnetcore

Quarantine Microsoft.AspNetCore.Server.HttpSys.ResponseBodyTests.ResponseBody_WriteContentLength_PassedThrough

Open
#66,063 1 comment 0 reactions 0 assignees View on GitHub
area-networking test-failure
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 5h
Merged PRs (30d)
276

Description

## Failing Test(s)

`Microsoft.AspNetCore.Server.HttpSys.ResponseBodyTests.ResponseBody_WriteContentLength_PassedThrough`

## Error Message

```text
System.Net.Http.HttpRequestException: An error occurred while sending the request.
---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host..
---> System.Net.Sockets.SocketException (10054): An existing connection was forcibly closed by the remote host.
```

## Stacktrace

Stack trace

```text
System.Net.Http.HttpRequestException: An error occurred while sending the request.
---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host..
---> System.Net.Sockets.SocketException (10054): An existing connection was forcibly closed by the remote host.
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Net.Http.HttpConnection.InitialFillAsync(Boolean async)
at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.SocketsHttpHandler.g__CreateHandlerAndSendAsync|115_0(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Microsoft.AspNetCore.Server.HttpSys.ResponseBodyTests.SendRequestAsync(String uri) in /_/src/Servers/HttpSys/test/FunctionalTests/ResponseBodyTests.cs:line 441
at Microsoft.AspNetCore.Server.HttpSys.ResponseBodyTests.ResponseBody_WriteContentLength_PassedThrough() in /_/src/Servers/HttpSys/test/FunctionalTests/ResponseBodyTests.cs:line 222
at Xunit.Sdk.TestInvoker`1.<>c__DisplayClass47_0.<b__1>d.MoveNext() in /_/src/xunit.execution/Sdk/Frameworks/Runners/TestInvoker.cs:line 259
```

## Logs

Helix console log (excerpt)

```text
[0.001s] [TestLifetime] [Information] Starting test ResponseBody_WriteContentLength_PassedThrough at 2026-03-28T01:38:44
[0.003s] [Microsoft.AspNetCore.Server.HttpSys.HttpSysListener] [Debug] Listening on prefix: (localhost/redacted)
[0.007s] [Microsoft.AspNetCore.Server.HttpSys.HttpSysListener] [Debug] Flush; Ignored write exception: 87
[0.009s] [Microsoft.AspNetCore.Server.HttpSys.HttpSysListener] [Information] Stop listening on prefix: (localhost/redacted)
[0.010s] [Microsoft.AspNetCore.Server.HttpSys.MessagePump] [Debug] Failed to accept a request, the server is stopping.
...
[0.014s] [Microsoft.AspNetCore.Server.HttpSys.ResponseBodyTests] [Error] Test threw an exception.
System.Net.Http.HttpRequestException: An error occurred while sending the request.
---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host..
---> System.Net.Sockets.SocketException (10054): An existing connection was forcibly closed by the remote host.
[0.015s] [TestLifetime] [Information] Finished test ResponseBody_WriteContentLength_PassedThrough in 0.013983s
```

Full log: https://helix.dot.net/api/2019-06-17/jobs/2b689a90-180c-4339-806a-b371de8b3522/workitems/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests--net10.0/files

## Build

https://dev.azure.com/dnceng-public/public/_build/results?buildId=1355917

> Generated by [Daily Test Quarantine Management](https://github.com/dotnet/aspnetcore/actions/runs/23706745397) · [◷](https://github.com/search?q=repo%3Adotnet%2Faspnetcore+is%3Aissue+%22gh-aw-workflow-call-id%3A+dotnet%2Faspnetcore%2Ftest-quarantine%22&type=issues)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.