for example, I use netty to write to the server, use simple Socket to simulate the client, and send data to the server like this:
bos.write(data);
bos.flush();
in this way, there is a problem. When the time interval between sending data from the client is very short, the msg
obtained by the channelRead (ChannelHandlerContext ctx, Object msg)
method of netty may contain the data from the client twice at the same time, so the server will have problems when parsing the data. Want to know why the problem of merging data frames occurs and how to solve it?