Summary: Dedicated not closing connections, windows+linux, ghost players
Game Version: (A21 b317)
CPU Model: Ryzen 5 5500/INTEL XEON 2670v3
System Memory: 16GB/64GB
GPU Model and VRAM: RX 580 8GB/?
Screen Resolution: 1920x1080
Video Settings: Ultra
Game mode: MP Dedicated Server
Did you wipe old saves? Yes
Did you start a new game? Yes
Did you validate your files? Yes
Are you using any mods? Yes, reproducible without inventory mods as well.
EAC on or off? Off
Bug Description: Dedicated server is not closing connections after last player disconnects, pinging the user several times, character still being in the world in the eyes of the server and zombies going after the player, time still passing.
From line 2103 to 2163, time is still running, zombies are still chasing the player position, 1 player appears online in the server list. He cannot be kicked, killed, because he is not found, but can be ID'd with server commands.
2082 line is disconnect from last player
line 2103->2163 is me trying to figure out how to kick the player(me)
I managed to reproduce this first on a linux server, after falling through the map, random server freezes and again same issue with not closing connections properly resulting in a crash(reported bug from "long sessions"). Below image with line of code is after everyone disconnects from the server:
seven@host-**-***-254-229:~$ lsof -p 2082883 | grep "protocol: TCP" |
wc -l 989
This is from a 64GB RAM system running a dedicated server, it couldn't be possibly running out of RAM..
Detailed steps to reproduce the bug:
1) Run dedicated server
2) Have people join, disconnect
3) Players will still appear in the server list as connected, a yellow error will be spammed through the console.
Actual result: 1 player online, "WRN NET: LiteNetLib: Ping requested for unknown client" in the server console, zombies chasing a disconnected invulnerable player, crashing which may lead to region corruption(linux only), falling through the map in long sessions(linux only), server hangs and long tick rates(linux only).
Expected result: 0 players on the server, time stopped