Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PostAsyncExpect100Continue_NonSuccessResponse_RequestBodyNotSent - IOException: End of Stream #31220

Closed
danmoseley opened this issue Oct 19, 2019 · 5 comments · Fixed by #35100
Assignees
Labels
area-System.Net.Http bug disabled-test The test is disabled in source code against the issue test-run-core Test failures in .NET Core test runs
Milestone

Comments

@danmoseley
Copy link
Member

System.Net.Http.Functional.Tests.SocketsHttpHandlerTest_Http2.PostAsyncExpect100Continue_NonSuccessResponse_RequestBodyNotSent

System.IO.IOException : End of stream

Stack trace
   at System.Net.Test.Common.Http2LoopbackConnection.ReadBodyAsync() in /_/src/Common/tests/System/Net/Http/Http2LoopbackConnection.cs:line 488
   at System.Net.Http.Functional.Tests.HttpClientHandlerTest_Http2.<>c__DisplayClass67_0.<<PostAsyncExpect100Continue_NonSuccessResponse_RequestBodyNotSent>b__1>d.MoveNext() in /_/src/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.Http2.cs:line 1931
--- End of stack trace from previous location ---
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in /_/src/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs:line 83
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in /_/src/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs:line 111
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks, Int32 millisecondsTimeout) in /_/src/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs:line 71
   at System.Net.Test.Common.Http2LoopbackServer.CreateClientAndServerAsync(Func`2 clientFunc, Func`2 serverFunc, Int32 timeout) in /_/src/Common/tests/System/Net/Http/Http2LoopbackServer.cs:line 186
   at System.Net.Http.Functional.Tests.HttpClientHandlerTest_Http2.PostAsyncExpect100Continue_NonSuccessResponse_RequestBodyNotSent() in /_/src/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.Http2.cs:line 1899
--- End of stack trace from previous location ---

https://dev.azure.com/dnceng/public/_build/results?buildId=393660&view=ms.vss-test-web.build-test-results-tab&runId=12233140&resultId=157765&paneView=debug

netcoreapp-Linux-Debug-x64-(Alpine.310.Amd64.Open)ubuntu.1604.amd64.Open

@davidsh
Copy link
Contributor

davidsh commented Oct 19, 2019

System.IO.IOException : End of stream

This exception is from the loopback server. Not sure if this is a test bug, perhaps with the loopback server, or a product bug with the HTTP2 client stack.

@wfurt @scalablecory

@msftgits msftgits transferred this issue from dotnet/corefx Feb 1, 2020
@msftgits msftgits added this to the 5.0 milestone Feb 1, 2020
@karelz
Copy link
Member

karelz commented Feb 28, 2020

I was able to hit it 4x out of 4,000 iterations of Http tests on latest Win10 VM.

@karelz karelz added the test-run-core Test failures in .NET Core test runs label Feb 28, 2020
@jozkee
Copy link
Member

jozkee commented Mar 26, 2020

Hit this issue on #33459

Libraries Test Run release coreclr Linux x64 Debug
https://dev.azure.com/dnceng/public/_build/results?buildId=574053&view=results

@aik-jahoda
Copy link
Contributor

aik-jahoda commented Mar 26, 2020

I Will disable this test as it is failing for me too. It fails regularly now.

@stephentoub stephentoub added the disabled-test The test is disabled in source code against the issue label Mar 27, 2020
@aik-jahoda aik-jahoda self-assigned this Apr 2, 2020
@karelz karelz changed the title End of Stream in PostAsyncExpect100Continue_NonSuccessResponse_RequestBodyNotSent test PostAsyncExpect100Continue_NonSuccessResponse_RequestBodyNotSent - IOException: End of Stream Apr 3, 2020
@alnikola alnikola assigned alnikola and unassigned aik-jahoda Apr 16, 2020
alnikola added a commit that referenced this issue Apr 20, 2020
PR adds an optional stream termination handling to `Http2LoopbackConnection.ReadBodyAsync` and fixes `HttpClient` construction missing the `SocketHttpHandler` created in the test.

Fixes #31220
@ghost ghost locked as resolved and limited conversation to collaborators Dec 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Net.Http bug disabled-test The test is disabled in source code against the issue test-run-core Test failures in .NET Core test runs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants