Skip to content

[Netcode] Match ends for everyone when the host briefly loses connection #116

Done

Description

@Greevee

Source: anonymous network statistics from players who opted in (first data since 0.6.0, Nov 25–26: 20 matches, 25 lobbies – a small sample, so this shows a direction, not a final verdict).

What the numbers say

  • 11 of 20 online matches ended because the host lost its connection to the server. Only 9 ended normally.
  • Lobbies look the same: 13 of 25 ended because the host's connection dropped.
  • Right now, when the host drops for a moment, the match is over for everyone.

Goal
A short hiccup on the host's side should not end the match for all players.

Ideas to look into

  • Give the host a grace period to come back before the match is closed.
  • Keep the match running between the other players while the host reconnects.
  • Look at host migration as a later step.

Related: #117

Will be tracked across the next versions; I will post updates here.

Activity

  1. added
    bug
    game: LoC
    fixed-0.6.3
    on Nov 26, 2026
  2. Greevee commented on Nov 26, 2026

    @Greevee
    ContributorAuthor

    Thanks – this one is closely tied to #117.

    • When only the host's connection to the server drops (the game traffic between the players keeps flowing), the server used to give up on the host too early and then closed the lobby – and every player lost every other player at once. With 0.6.3 the host gets two minutes to come back, the game reconnects by itself, and the match keeps running for everyone in the meantime.
    • The statistics were too pessimistic: a host simply closing the game after a match counted as "host lost". That is fixed too (the game now signs out on exit), so the next numbers will show the real drops.

    What does not change: if the host's whole connection is gone for more than about 10 seconds (game traffic included), or the host's game closes or crashes, the game itself drops the host from the running mission and ends it for the others a few seconds later – that is the original game's own limit, and I measured it in the lab. Real host migration would mean changing the game logic, not just the network, so it is not part of this update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfixed-0.6.3game: LoC

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions