Skip to content

Out of order messages with server #465

@jokesper

Description

@jokesper

Describe the bug
When multiple clients send messages, the server broadcasts them in a random order.
This is especially tragic, since a client may receive a message, and reply, while another has yet to receive the first.
Then getting rescheduled

It seems the websocket handler, may be called asyncronously. This may also be a problem with the clients

To Reproduce
Have many connected clients
and reply as soon as you get a message

observe different ordering on clients.

Expected behavior
The order in which the server receives the messages should be the order in which they are relayed

Please complete the following information:

  • OS: NixOS
  • Java version: openJDK 11

Additional context
Observed in local testing environment. May also be due to clients reording server messages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions