Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

[WebSockets] AbortStopDisconnect scenario failing: System.InvalidOperationException: Incorrect message type #1607

Closed
jcondex opened this Issue · 0 comments

3 participants

@jcondex

I'm seeing an InvalidOperationException being thrown in the AbortStopOrDisconnect stress scenario. This only happens using WebSocketTransport.

I have uploaded a repro here:
\indigofs\CommonShare\jconde\SignalR\Bugs\1607

To repro, deploy the hub (bin/www) and invoke the client like this:

SignalR.Stress.AbortStopOrDisconnect.exe /huburl:http://localhost/SignalR.Stress.AbortStopOrDisconnect /TransportNames:websoc
kettransport /threads:1

Here is the exception stack:

StressTestLogger Critical: 11 : [15:13:25] System.InvalidOperationException: Incorrect message type
   at Microsoft.AspNet.SignalR.WebSockets.WebSocketMessageReader.<ReadMessageAsync>d__0.MoveNext() in c:\Users\jconde\Documents\GitHub\SignalR\src\Microsoft.AspNet.SignalR.Owin45\WebSockets\WebSocketMessageReader.cs:line 68
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Microsoft.AspNet.SignalR.WebSockets.WebSocketHandler.<ProcessWebSocketRequestAsync>d__8.MoveNext() in c:\Users\jconde\Documents\GitHub\SignalR\src\Microsoft.AspNet.SignalR.Owin45\WebSockets\WebSocketHandler.cs:line 153

Log traces:

StressTestLogger Information: 5 : RunVariation : [15:13:25] Invoked abort on connectionId:0c266b59-5031-4088-b3bf-e205f5
48813a.
StressTestLogger Critical: 11 : [15:13:25] Error - ConnectionId:0c266b59-5031-4088-b3bf-e205f548813a ConnectionToken:eUE
nKpIH17CilANmn1LxwBV-1EAvy4MBY-p3870Xzp32ReaJbNHeGo6J-ymcUtzqkBQdIWt5lAmbRlG-OsGjh57KgYjuGvKwhVVhPoXa6DIVXhkbkgFfHX2mdIj
pXE6T0
StressTestLogger Verbose: 5 : RunVariation : [15:13:25] [webSockets] - Invoked SendMe(5, x2ouAj4oGtsclAargUrkTV6E_DPwhn6
ljFpK9buniwNw5lCr2B4EkXKDi8RB9kTmLOltlHc76p2o7gXyfYacQOGBgcUQ8JCvsT1XDfxeq0OHuGVcCticQlXULwxPY5UW0) - b65014be-a5b5-4342
-afd8-516547402b04
StressTestLogger Critical: 11 : [15:13:25] System.InvalidOperationException: Incorrect message type
   at Microsoft.AspNet.SignalR.WebSockets.WebSocketMessageReader.<ReadMessageAsync>d__0.MoveNext() in c:\Users\jconde\Do
cuments\GitHub\SignalR\src\Microsoft.AspNet.SignalR.Owin45\WebSockets\WebSocketMessageReader.cs:line 68
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Microsoft.AspNet.SignalR.WebSockets.WebSocketHandler.<ProcessWebSocketRequestAsync>d__8.MoveNext() in c:\Users\jco
nde\Documents\GitHub\SignalR\src\Microsoft.AspNet.SignalR.Owin45\WebSockets\WebSocketHandler.cs:line 153
@halter73 halter73 was assigned
@Xiaohongt Xiaohongt was assigned
@jcondex jcondex was assigned
@Xiaohongt Xiaohongt was assigned
@jcondex jcondex was assigned
@jcondex jcondex closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.