Open
Description
Failing Test(s)
- Microsoft.AspNetCore.Server.IIS.FunctionalTests.ClientDisconnectTests.ReaderThrowsResetExceptionOnInvalidBody
Error Message
System.AggregateException : One or more errors occurred. (Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host..) (Unexpected log: Error Microsoft.AspNetCore.Server.IIS.FunctionalTests.ClientDisconnectTests: Test threw an exception.)
---- 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 : An existing connection was forcibly closed by the remote host.
---- Unexpected log: Error Microsoft.AspNetCore.Server.IIS.FunctionalTests.ClientDisconnectTests: Test threw an exception.
Stacktrace
----- Inner Stack Trace #1 (System.IO.IOException) -----
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
at System.Threading.Tasks.ValueTask`1.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.InternalTesting.TaskExtensions.TimeoutAfter[T](Task`1 task, TimeSpan timeout, String filePath, Int32 lineNumber) in /_/src/Shared/TaskExtensions.cs:line 88
at Microsoft.AspNetCore.Server.IntegrationTesting.TestConnection.Receive(Int32 length) in D:\a\_work\1\s\src\Servers\IIS\IIS\test\testassets\IIS.Common.TestLib\TestConnections.cs:line 137
at Microsoft.AspNetCore.Server.IntegrationTesting.TestConnection.Receive(String[] lines) in D:\a\_work\1\s\src\Servers\IIS\IIS\test\testassets\IIS.Common.TestLib\TestConnections.cs:line 118
at Microsoft.AspNetCore.Server.IIS.FunctionalTests.ClientDisconnectTests.ReaderThrowsResetExceptionOnInvalidBody() in /_/src/Servers/IIS/IIS/test/IIS.Tests/ClientDisconnectTests.cs:line 265
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
----- Inner Stack Trace #2 (Xunit.Sdk.XunitException) -----
at Microsoft.AspNetCore.Server.IIS.FunctionalTests.StrictTestServerTests.Dispose() in /_/src/Servers/IIS/IIS/test/IIS.Tests/StrictTestServerTests.cs:line 22
at ReflectionAbstractionExtensions.DisposeTestClass(ITest test, Object testClass, IMessageBus messageBus, ExecutionTimer timer, CancellationTokenSource cancellationTokenSource) in /_/src/xunit.execution/Extensions/ReflectionAbstractionExtensions.cs:line 79
Logs
[0.001s] [TestLifetime] [Information] Starting test ReaderThrowsResetExceptionOnInvalidBody at 2024-05-27T16:10:03
[0.014s] [Microsoft.AspNetCore.Server.IIS.FunctionalTests.TestServer] [Debug] Method: GET, RequestUri: 'http://localhost:58384/start', Version: 1.1, Content: <null>, Headers:
{
}
[0.016s] [Microsoft.Extensions.Hosting.Internal.Host] [Debug] Hosting starting
[0.017s] [Microsoft.AspNetCore.Hosting.Diagnostics] [Debug] Loaded hosting startup assembly IIS.Tests
[0.017s] [Microsoft.Hosting.Lifetime] [Information] Application started. Press Ctrl+C to shut down.
[0.017s] [Microsoft.AspNetCore.Hosting.Diagnostics] [Information] Request starting HTTP/1.1 GET http://localhost:58384/start - null null
[0.021s] [Microsoft.Hosting.Lifetime] [Information] Hosting environment: Production
[0.021s] [Microsoft.Hosting.Lifetime] [Information] Content root path: C:\h\w\BCA70A28\w\A5590941\e\.
[0.021s] [Microsoft.Extensions.Hosting.Internal.Host] [Debug] Hosting started
[0.021s] [Microsoft.AspNetCore.Hosting.Diagnostics] [Information] Request finished HTTP/1.1 GET http://localhost:58384/start - 200 null null 4.1328ms
[0.021s] [Microsoft.AspNetCore.Server.IIS.FunctionalTests.TestServer] [Debug] StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:
{
Transfer-Encoding: chunked
Server: Microsoft-IIS/10.0
Date: Mon, 27 May 2024 16:10:03 GMT
}
[0.021s] [Microsoft.AspNetCore.Server.IIS.FunctionalTests.TestServer] [Debug] Done
[0.023s] [Microsoft.AspNetCore.Hosting.Diagnostics] [Information] Request starting HTTP/1.1 POST http://localhost/ - null null
[0.024s] [Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer] [Debug] Connection ID "18230571296696041490" disconnecting.
[0.024s] [Microsoft.AspNetCore.Hosting.Diagnostics] [Information] Request finished HTTP/1.1 POST http://localhost/ - 499 null null 1.1947ms
[1.146s] [Microsoft.Hosting.Lifetime] [Information] Application is shutting down...
[2.197s] [Microsoft.AspNetCore.Server.IIS.FunctionalTests.ClientDisconnectTests] [Error] Test threw an exception.
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.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
at System.Threading.Tasks.ValueTask`1.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.InternalTesting.TaskExtensions.TimeoutAfter[T](Task`1 task, TimeSpan timeout, String filePath, Int32 lineNumber) in /_/src/Shared/TaskExtensions.cs:line 88
at Microsoft.AspNetCore.Server.IntegrationTesting.TestConnection.Receive(Int32 length) in D:\a\_work\1\s\src\Servers\IIS\IIS\test\testassets\IIS.Common.TestLib\TestConnections.cs:line 137
at Microsoft.AspNetCore.Server.IntegrationTesting.TestConnection.Receive(String[] lines) in D:\a\_work\1\s\src\Servers\IIS\IIS\test\testassets\IIS.Common.TestLib\TestConnections.cs:line 118
at Microsoft.AspNetCore.Server.IIS.FunctionalTests.ClientDisconnectTests.ReaderThrowsResetExceptionOnInvalidBody() in /_/src/Servers/IIS/IIS/test/IIS.Tests/ClientDisconnectTests.cs:line 265
at Xunit.Sdk.TestInvoker`1.<>c__DisplayClass48_0.<<InvokeTestMethodAsync>b__1>d.MoveNext() in /_/src/xunit.execution/Sdk/Frameworks/Runners/TestInvoker.cs:line 264
--- End of stack trace from previous location ---
at Xunit.Sdk.ExecutionTimer.AggregateAsync(Func`1 asyncAction) in /_/src/xunit.execution/Sdk/Frameworks/ExecutionTimer.cs:line 48
at Xunit.Sdk.ExceptionAggregator.RunAsync(Func`1 code) in /_/src/xunit.core/Sdk/ExceptionAggregator.cs:line 90
[2.197s] [TestLifetime] [Information] Finished test ReaderThrowsResetExceptionOnInvalidBody in 2.1963399s
Build
aspnetcore-ci 5/27/2024, 9:10:42 AM