Skip to content

Investigate and Fix Automatic Reconnection Issues #142

@mystiker

Description

@mystiker

Description

The automatic reconnection process between the frontend and backend is not functioning correctly. Currently, the backend is expected to disconnect from the game server if the frontend has not reconnected within 15 minutes. During this disconnected state, the backend should buffer all messages and deliver them to the frontend once it reconnects.

However, this process appears to be malfunctioning. The backend does not always properly handle reconnections, message buffering, or the disconnection logic, leading to disrupted gameplay and potential loss of data.

Objective

Analyze and test the automatic reconnection process to identify and resolve any issues. Ensure that the backend correctly manages disconnections, buffers messages, and delivers them to the frontend upon reconnection.

Tasks

  1. Review the backend logic for handling frontend disconnections and reconnections.
  2. Verify that the backend disconnects from the game server after 15 minutes of frontend inactivity.
  3. Test the message buffering mechanism during the disconnected state.
  4. Ensure that all buffered messages are correctly delivered to the frontend upon reconnection.
  5. Fix any identified issues in the reconnection or buffering logic.
  6. Test thoroughly to confirm that the reconnection process works seamlessly under various scenarios.

Expected Outcome

  • The backend properly disconnects from the game server after 15 minutes of frontend inactivity.
  • Messages are correctly buffered while the frontend is disconnected.
  • Buffered messages are reliably delivered to the frontend upon reconnection.
  • No data loss or gameplay disruption occurs during the reconnection process.

Notes

  • Test the solution under different network conditions to ensure stability and reliability.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendThis issue is specific to the backendbugSomething isn't workingfrontendThis issue is specific to the frontendqualifyIssues that need to be discussed further

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions