LiteNetLib: "NM Bad!"
I’m getting this here:
https://i.imgur.com/fWZPXhS.png
From what I can see that means that we have received some “unaligned” or “unexpected” data?
Anyway, the return false; is hit, and then it goes to NetManager.cs : line 587
To “DataReceived bad!”
I got this while trying to figure out why my reject packets are not received. Everything works fine normally, except when I want to reject a connection with a message. Then the client doesn’t receive the rejection from the server and keeps trying.
I have set a “Action-Breakpoint” to log a message in NetPeer.cs, and it is indeed hit! https://i.imgur.com/koNaY6Q.png
But my client somehow doesn’t receive the message. It only works sometimes. Only when I have a breakpoint in there and step through it, the client receives the reject packet as intended.
It is definitely a timing issue somehow, as soon as I add a delay it starts working.
Version: the latest 0.7 branch.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (8 by maintainers)
@rikimaru0345 i found some bugs. And fixing them.
Everything works nicely now! Thanks!