KeenSoftwareHouse / SpaceEngineers

2.93k stars 896 forks source link

Steam does not always return ip in timeout. #611

Open Devidian opened 2 years ago

Devidian commented 2 years ago

https://github.com/KeenSoftwareHouse/SpaceEngineers/blob/a109106fc0ded66bdd5da70e099646203c56550f/Sources/Sandbox.Game/Engine/Multiplayer/MyDedicatedServerBase.cs#L245-L263

This seems to be still an issue in the current code. Especially when running dedicated Server in a docker container, it is very often running into a "Error: No IP assigned."

Would be great if you can fix that in the current codebase! (maybe tick for >10hz as recommended by steam and use a higher timeout than 10 seconds)

https://partner.steamgames.com/doc/api/steam_gameserver#SteamGameServer_RunCallbacks