-
Notifications
You must be signed in to change notification settings - Fork 157
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
ReadPacket后,未调用 OnMessage #18
Comments
看下是不是ReadPacket里面解包出错了,这个打印点log看看就知道。 |
嗯,已经在ReadPacket进行验证,得出了以上的结论,也是很费解。所以提了这个issues。 |
在conn.go里面读写packetReceiveChan 的地方打印log调试 |
|
比较无法理解。。。。。。。 |
OnClose: 192.168.12.200:45300
这个地方其实是个bug,#14 ,之前有人提过这个问题,还没有修改好 |
可以在 func (c *Conn) Close() 这个函数里面把未处理的message回调出去。 |
如果先读取,而后在判断是否close,会造成什么结果? 数据长度过长,分开处理? |
用户可能在OnMessage里面通过conn来发送数据,所以这里 是先判断close,再通过OnMessage回调 |
仿照echo server写了接收程序,在ReadPacket可正常接收数据,而数据时常无法传递到OnMessage。
已经设置PacketReceiveChanLimit=200000
不知道其他朋友是否遇到此问题,打算尝试gtcp
The text was updated successfully, but these errors were encountered: