Closed kumpera closed 5 years ago
It normally happens when the browser decides to send a large amount of data to the debugger.
/cc @anurse
The error message is wrong because of https://github.com/aspnet/WebSockets/issues/198 which should be fixed in 2.1-preview1.
The actual error message is: "The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, Closed Received'"
It sounds like one of the parties aborted the connection. Do you have more information about the scenario (such as a repro?)? Also, is this occuring in the socket received from Actually the error message makes it clear because it's on the ASP.NET WebSocket that had these broken error messages.AcceptWebSocketAsync
or from a ClientWebSocket
(the latter would be an issue for dotnet/corefx)
Hey @anurse,
The scenario is the v8 debugger being flooded with messages when the browser finishes loading a wasm file with debug data and decided to tell the debugger that there are a few thousand source files in the web page.
It works fine without the proxy, so there's something wrong somewhere in my setup (my code or asp.net core).
I'll update to 2.1-preview1 to see if anything changes.
Meanwhile, while I reduce my thing to an usable repro, would some WireShark dumps help?
WireShark dumps would help a lot. The key is going to be figuring out who is terminating the connection and why. ASP.NET's WebSocket implementation adds almost nothing on top of the CoreFX ManagedWebSocket implementation (in fact, in 2.1-preview1, it is literally using the same code), so there may be an issue there.
Do you have a repro I can run locally?
Closing this as it's gotten very stale :).
Hello everyone,
I'm using asp.net to proxy the v8 debugger protocol. It uses WebSockets.
I'm running into this exception that makes little sense to me. What could be causing it?