Skip to content

Test failure on NETFX run: System.Net.WebSockets.Client.Tests.ArraySegmentSendReceiveTest/SendAsync_MultipleOutstandingSendOperations_Throws(server: ws://corefx-net.cloudapp.net/WebSocket/EchoWebSocket.ashx) #27881

Closed
dotnet/corefx
#37271

Description

Opened on behalf of @danmosemsft

The test System.Net.WebSockets.Client.Tests.ArraySegmentSendReceiveTest/SendAsync_MultipleOutstandingSendOperations_Throws(server: ws://corefx-net.cloudapp.net/WebSocket/EchoWebSocket.ashx) has failed.

Failure Message:

System.Net.WebSockets.WebSocketException : The 'System.Net.WebSockets.InternalClientWebSocket' instance cannot be used for communication because it has been transitioned into the 'Aborted' state.\r
---- System.Net.WebSockets.WebSocketException : The 'System.Net.WebSockets.InternalClientWebSocket' instance cannot be used for communication because it has been transitioned into the 'Aborted' state.

Stack Trace:

   at System.Net.WebSockets.WebSocketBase.ThrowIfAborted(Boolean aborted, Exception innerException)
   at System.Net.WebSockets.WebSocketBase.ThrowIfConvertibleException(String methodName, Exception exception, CancellationToken cancellationToken, Boolean aborted)
   at System.Net.WebSockets.WebSocketBase.<SendAsyncCore>d__47.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Net.WebSockets.Client.Tests.SendReceiveTest.<SendAsync_MultipleOutstandingSendOperations_Throws>d__8.MoveNext() in E:\A\_work\17\s\corefx\src\System.Net.WebSockets.Client\tests\SendReceiveTest.cs:line 166
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
----- Inner Stack Trace -----
   at System.Net.WebSockets.WebSocketProtocolComponent.ThrowIfSessionHandleClosed(WebSocketBase webSocket)
   at System.Net.WebSockets.WebSocketProtocolComponent.WebSocketGetAction(WebSocketBase webSocket, ActionQueue actionQueue, Buffer[] dataBuffers, UInt32& dataBufferCount, Action& action, BufferType& bufferType, IntPtr& actionContext)
   at System.Net.WebSockets.WebSocketBase.WebSocketOperation.<Process>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Net.WebSockets.WebSocketBase.<SendAsyncCore>d__47.MoveNext()

Build : 3.0 - 20181112.01 (Full Framework Tests)
Failing configurations:

  • Windows.10.Amd64.ClientRS4-x86
    • Release

Activity

  1. danmoseley commented on Nov 12, 2018

    @danmoseley
    Contributor

    InternalClientWebSocket' instance cannot be used for communication because it has been transitioned into the 'Aborted' state. suggests it's not a flaky server.

  2. davidsh commented on Nov 12, 2018

    @davidsh
    Contributor

    InternalClientWebSocket' instance cannot be used for communication because it has been transitioned into the 'Aborted' state.

    We see this error sometimes. We think the test itself is either brittle or there is a bug in .NET Framework websockets code due to race conditions.

  3. danmoseley commented on Nov 12, 2018

    @danmoseley
    Contributor

    @davidsh is it possible to disable this test for desktop then? Each time a test fails, I potentially have to go look and see whether it's known, so anything we don't fix promptly we should disable.

  4. davidsh commented on Nov 12, 2018

    @davidsh
    Contributor

    @davidsh is it possible to disable this test for desktop then? Each time a test fails, I potentially have to go look and see whether it's known, so anything we don't fix promptly we should disable.

    I will submit a PR now to disable the test on NETFX.

  5. self-assigned this
    on Nov 12, 2018
  6. removed their assignment
    on Nov 12, 2018
  7. self-assigned this
    on Apr 29, 2019
  8. added a commit that references this issue on Apr 29, 2019
  9. transferred this issue fromdotnet/corefxon Jan 31, 2020
  10. added this to the 3.0 milestone on Jan 31, 2020
  11. ghost locked as resolved and limited conversation to collaborators on Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-System.Netdisabled-testtest-bugtest-run-desktop

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions