You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Server receiving messages from a client in Unity, setup like the example in the wiki.
I am sending two different messages on two different key presses, one on space bar press and the other on Q key press.
The message on space bar press is longer than the message on Q press.
Space bar message, server receives: "Client sends message on Space key press."
Q key message, server receives: "Beep beep beep on Q key press!"
If I press space bar first, and send the above message, and then press on Q, the server receives:
"Beep beep beep on Q key press!key press.", which shows that the previous message, sent on space bar was not cleared.
Is this a defect? How do you clear previous messages if not a defect?
Thank you.
The text was updated successfully, but these errors were encountered:
I had the same problem. Go to MagnificentReceivePipe.cs, find the Enqueue method, and clear the byte[] bytes after taking it from the pool. Just traverse it.
for (int i = 0; i < bytes.Length; i++)
bytes[i] = default;
I have a Server receiving messages from a client in Unity, setup like the example in the wiki.
I am sending two different messages on two different key presses, one on space bar press and the other on Q key press.
The message on space bar press is longer than the message on Q press.
Space bar message, server receives: "Client sends message on Space key press."
Q key message, server receives: "Beep beep beep on Q key press!"
If I press space bar first, and send the above message, and then press on Q, the server receives:
"Beep beep beep on Q key press!key press.", which shows that the previous message, sent on space bar was not cleared.
Is this a defect? How do you clear previous messages if not a defect?
Thank you.
The text was updated successfully, but these errors were encountered: