Steamworks.NET icon indicating copy to clipboard operation
Steamworks.NET copied to clipboard

CloseListenSocket does not trigger SteamNetConnectionStatusChangedCallback_t disconnect on local client

Open chrisnobrega opened this issue 3 years ago • 0 comments

Expected behavior:

bool CloseListenSocket( HSteamListenSocket hSocket ); All the connections that were accepted on the listen socket are closed ungracefully

https://partner.steamgames.com/doc/api/ISteamNetworkingSockets

Issue repro steps:

  1. Start listen server
  2. Connect to listen server with local client (same machine)
  3. Close listen server
  4. Local client connected to listen server does not get SteamNetConnectionStatusChangedCallback_t indicating a disconnect

I'm currently getting around this by manually closing each connection before closing the listen socket. But that feels hacky.

chrisnobrega avatar Jul 25 '22 00:07 chrisnobrega