Skip to content

TCP does not maintain ordering #14

@Rich2020

Description

@Rich2020

I am sending from my client to a server using connection.SendBytes(bytes, SendOption.Reliable); but the server still receives the messages in the incorrect order.

To test this, my server simply has a ConcurrentQueue which is populated when the Receive callback is fired. I have a Task which loops and uses var success = queue.TryTake(out message); - if successful, I deserialize and check the number of the message received. After some random amount of messages, it is clear that the messages received are not always in the correct order. I am certain that I have sent them in the correct order.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions