You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case of working with Java Spring 5.0 Web Sockets, the following error was occurred:
WebSocketMessageReadNetworkStream can only start with a Text or Binary frame, not Continuation.
How this can be fixed?
This issue happens on the massive web socket messages receive, e.g. it is actual only for case, when multiple independent parallel connections (for the same socket client) receive ~10 000 messages.
The text was updated successfully, but these errors were encountered:
It seems it is trying to read a message when an existing one is still being transferred. How long are the messages usually? Are you making sure the message is completely read (ie: the message stream is fully consumed). I am not very sure how this may happen. The size of the message when fails could be a good hint.
thrownew WebSocketException("WebSocketMessageReadNetworkStream can only start with a Text or Binary frame, not "+ _webSocket.CurrentHeader.Flags.Option.ToString());
I think I understand, what was happened. I checked message type firstly, then I copied message entirely to the separate memory stream. I will replace order of these functions.
About the probability: 1 timer per 10 000 messages (average)
In case of working with Java Spring 5.0 Web Sockets, the following error was occurred:
How this can be fixed?
This issue happens on the massive web socket messages receive, e.g. it is actual only for case, when multiple independent parallel connections (for the same socket client) receive ~10 000 messages.
The text was updated successfully, but these errors were encountered: