First of all, bad English, sorry for that.
My Akka Http version is 10.1.2
I’m using Akka Http’s
singleWebSocketRequest, and recently I find that, if there is a huge tcp package, network will dispart it as multi package with last one’s
fin = 1.
But when messages comes to netty/akka http, the last frame comes first, then akka http transforming it to a BinaryMessage.Strict, but others message transformed as BinaryMessage.Stream. then when I received BinaryMessages, I found my messages disorders. Because the last frame with fin sign comes first.
Now. I’m thinking, how to make Akka’s websocket have any buffer for message to handle this
situation, to make my dispart-message become ordered, or make sure all the frame is be ordered by sequence id.
Here is part of my code for receiving message, I print the message’s serial number when I received, then pipe it to actor to handle messages