LLAPI: NetworkTransport.Receive method - no way to recover from malformed packet?

When a client sends my server a malformed packet (greater than the expected byte size), the server infinitely errors (NetworkError.MessageToLong), and there seems to be no way to recover. If it’s true, this is a pretty significant issue…

I’m not the only one:

Wow, I hope we can get an answer to this. This actually might be what’s bringing down my servers after a couple days too. It wouldn’t even have to be malicious intent, correct? Could it just be network errors that would mangle the data / length.

reeivedLength will return actual size of the message, allocate buffer with this receivedLenfth size and call Receive again…

2 Likes

Thanks. I’ll try that.