Skip to content

Player Character Duplication #377

@Xavious

Description

@Xavious

Issue

Upon leaving a telnet session running for a certain period of inactivity, the connection seems to wane on the client side. The game becomes unresponsive, but doesn't drop the session. When I disconnect and reconnect, and attempt to login to the same character, the session will once again hang as it goes through the choose-character.js event.

Once I disconnect and reconnect a second time it loads my character like normal, but there is a duplicate standing there. This process can be rinsed and repeated seemingly in perpetuity. I spawned about 3 duplicates in one particularly long session of reading code and testing things in game, with long gaps in between.

Synopsis

Inactivity causes the session to hang on the client side, yet persist on the server even after going link-dead. While testing I also discovered some awkwardness when it comes to attempting to log into the same character from a new session while the old session is still alive. It left my new session hanging, after choosing that same character, as it fires the multi-play event in the same way as before. However, this case did not cause duplication.

Server Logs

2018-12-12T23:17:34.410Z - info: User connected...
2018-12-12T23:17:40.959Z - info: Selected Xavious
2018-12-12T23:17:40.962Z - warn: Booted Xavious: Replaced. No multiplaying allowed.

Environment (please complete the following information):

  • Client side - Windows 10 and MUSHclient
  • Server side - Centos 7 with node.js v10.14.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions