Skip to content
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.

ServerPacketProcessor处理无长度数据包时陷入循环 #54

Open
qinqoushui opened this issue Feb 11, 2020 · 0 comments
Open

ServerPacketProcessor处理无长度数据包时陷入循环 #54

qinqoushui opened this issue Feb 11, 2020 · 0 comments

Comments

@qinqoushui
Copy link

var packetSize = packetSerialiser.CanReadLength
? BitConverter.ToInt32(buffer, currentPosition)
: 0;
//包长度后续没赋值,在不能读取长度的业务中陷入循环,如果数据包没有长度说明,则使用整包的长度
var packetSize = packetSerialiser.CanReadLength
? BitConverter.ToInt32(buffer, currentPosition)
: length;

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

No branches or pull requests

1 participant