Skip to content

[3.8.1beta1] Existing connection gets allocated to a new channel #2046

Description

@dtinth

Describe the bug

It seems like in some circumstances, when a new connection arrives, existing connections get assigned into the same channel. When this happens, the symptom is:

  • On the client, the affected users gets these symptoms:

    • The sound begins stuttering.
    • The user receives a welcome message again.
    • The users appears multiple times in the client list.

    It basically disrupted the whole session.

  • On the server, we get weird logs that said that several people connected on the same second, but the number of connected people does not increase.

    2021-09-25 00:03:36, 112.**.112.120, connected (15)
    2021-09-25 00:03:36, 171.**.89.130, connected (15)
    2021-09-25 00:03:36, 171.**.24.59, connected (15)
    2021-09-25 00:03:36, 182.**.53.34, connected (16)
    

To Reproduce
Run a server with -u 25 for max 25 users, and get several people to join. It will take a while. See this comment for a repro.

Expected behavior
Server should go smoothly.

Screenshots

Operating system
Linux, built from source

Version of Jamulus
3.8.1beta

Additional context
I suspect that there could be a bug with this PR:

So, I reverted the PR (git revert 15ee6093df26efdb0cbf264e5f8dd34c6785dea6 -m 1), recompiled, and deployed it to my server. As of writing, I did not encounter the problem since.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions