通信包体大小异常 #2079
wangcunzhu
started this conversation in
General
通信包体大小异常
#2079
Replies: 1 comment
-
|
分包是更底层的行为,和sproto、 websocket都无关吧。 你说的”但是偶尔出现前面两个字节反序列化出来的值小于后面包体的长度“,不是很理解 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
最近这两天出现一个这样的问题使用的是sproto和websocket,在前后端传输过程中大部分两字节的头部反序列化出来的值等于当次后面包体的长度,但是偶尔出现前面两个字节反序列化出来的值小于后面包体的长度,不知道为什么会这样,了解到websocket基本上没有说粘包和分包的可能,他自己这个底层自己处理好这样的情况了,通过前面两字节长度截取出来的包内容可以正常加解密和反序列化,想了解为什么多出那些个字节和多出来的字节是什么
Beta Was this translation helpful? Give feedback.
All reactions