Skip to content

[Netcode] Short stalls in the game traffic end the match (built-in 10 s limit) – keep matches and lobbies alive #122

Done

Description

@Greevee

Source: anonymous network statistics from players who opted in, plus lab tests for #116/#117.

What happens today

  • If the connection between players stalls for more than about 10 seconds, Line of Contact itself ends the mission. This limit is built into the original game, and it also applies to the host.
  • A Wi-Fi hiccup or a router reconnect that cuts the game traffic for a few seconds longer is enough to end the match for everyone.
  • In lobbies, players drop out after short connection problems, too.

What the numbers say (Nov 20–26, small sample)

  • 23 matches started, 14 ended because the host was lost.
  • 86 disconnects, almost none of them clean.

The next update (0.6.3) already fixes the drops of the server connection (#116, #117). This issue is about the game traffic between players.

Goal

  • A short stall in the game traffic – up to roughly a minute – pauses or holds the match instead of ending it, for the host and for everyone else. The match continues where it stopped once the connection is back.
  • Players stay in their lobby through short connection problems.
  • The game shows clearly what is happening ("Waiting for …").
  • The match only ends if a player is really gone.

How I'll approach it

  • Use the network statistics to find out which kinds of drops happen most (length, host or client, direct or relay).
  • Find where the game decides "no data for 10 s, end the mission", and hold that clock while the connection is only stalled.
  • Keep both players' game states exactly in sync (no desyncs) and keep all security rules.

Related: #116, #117, #118, #119

Activity

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

    @Greevee
    ContributorAuthor

    Thanks for asking for this – and for everyone who shares the network statistics, they made it possible to look at the real numbers.

    What I found

    • When the game traffic between the players stops for about 10 seconds, the original game itself drops that player from the running mission. If that player is the host, or if only two players are left, the mission ends a few seconds later. This limit is part of the original network code, not of steelnet – a short Wi-Fi drop or a router hiccup was enough to end a match.
    • The server statistics of the last week also show something else: most lost players and "host lost" matches were not short network drops. In almost all of them the game had been closed or had crashed, and was often restarted within a few seconds. Holding a stall cannot help there, but the next update makes those cases much easier to tell apart.

    What changes in 0.6.3

    • If a player's game traffic stalls while their connection is still there, the match now waits for them for up to 60 seconds instead of dropping them after 10. Everyone sees "Waiting for ..." with the time left; the player whose own connection dropped sees "Connection interrupted". When the traffic comes back, the match simply goes on – the game waits instead of guessing inputs, so nobody gets out of sync.
    • If the player really left – the game was closed, it crashed, or the 60 seconds are over – they are removed just like before, so nobody waits for a player who is not coming back. To make that work, the server now tells the other players right away when someone's game closed its connection, and a crashing game signs out before it ends.
    • The same applies in the lobby: a short stall no longer throws anyone out.
    • With your consent, the network report now also counts how long such stalls were and whether the match went on afterwards, so I can see how well this works after the release.

    In my lab tests (three players) matches now survive the host losing all game traffic for 15, 30 and 45 seconds, a client for 30 seconds, and a 30-second Wi-Fi pause of the host, with no desync; before, the same drops of 15 and 30 seconds and the Wi-Fi pause ended the match after 10 seconds. A 20-second stall in the lobby used to throw the player out, now they stay. If the host's game is closed or crashes, the others still see it after about 10 seconds, as before.

    If a match still ends for you after a short drop, the network report will now show what happened – I'd be glad if you keep sharing it.

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

    enhancementfixed-0.6.3game: LoC

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions