Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

解码器里的channelRead的msg,是按照MTU分割了,而并没有组装成发送时的完整数据么? #9

Open
tidus5 opened this issue Jul 27, 2018 · 2 comments

Comments

@tidus5
Copy link

tidus5 commented Jul 27, 2018

想测试一下,大数据包的发送, 发了一个 1024 字节的消息。但解码器收到的前三次消息打印如下
server rec len :488
server rec len :488
server rec len :48

所以,这里没有做消息组装?应该如何组装出发送时的原始数据?
这里需要自己手动做消息缓存,来处理半包的组装么?

@szhnet
Copy link
Owner

szhnet commented Jul 30, 2018

没有组装成完整数据。可以自己写解码器实现。

@szhnet
Copy link
Owner

szhnet commented Sep 19, 2018

新的版本已经可以合并数据分段了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants