protonscr

Network connection check waits for 20+ seconds after resume

steamclosed
ValveSoftware/steam-for-linux#12450 · opened 2025-11-14 by toupeira · updated 2025-11-24 · 1 comments · github
Ttoupeira 2025-11-14 github

Your system information

  • Steam client version (build number or date): 1759461205, installed via Flatpak
  • Distribution (e.g. Ubuntu): Debian sid, GNOME, NetworkManager
  • Opted into Steam client beta?: No
  • Have you checked for system updates?: Yes
  • Steam Logs:
  • GPU: AMD

Please describe your issue in as much detail as possible:

After resuming from standby, my wired connection takes a second to come back online.

Steam correctly detects the offline state, but then waits for 20+ seconds before checking the connection status again:

StartAutoReconnect() will start in 22.0 seconds (attempt 1)

In the meantime I just click "Go Offline..." in the Steam menu and go online again, and get a usable Steam after a few seconds.

This StartAutoReconnect delay should either be shortened to 1-2s by default (with backoff), or be configurable.

Steps for reproducing this issue:

  1. Start Steam
  2. Suspend system
  3. Resume system
  4. Try to play a game, Steam will warn that there is no connection for cloud syncing, even though there is.

connection_log.txt

[2025-11-14 16:27:10] CClientJobGetClientUpdateHosts: cached version not expired
[2025-11-14 16:27:22] [Logged Off, 4, 0] [U:1:131317002] ConnectionDisconnected('I/O Operation Failed') : 'OK' (162.254.198.68:27022, WebSocket)
[2025-11-14 16:27:22] [Logged Off, 4, 0] [U:1:131317002] StartAutoReconnect() will start in 22.0 seconds (attempt 1)
[2025-11-14 16:27:22] [Logged Off, 4, 0] [U:1:131317002] Sending SteamServersDisconnected_t because we were logged on
[2025-11-14 16:27:22] IPv6 HTTP connectivity test (ipv6check-http.steamserver.net / [2a01:bc80:7:100::9b85:f804]:80 ([2a01:bc80:7:100::9b85:f804]:80)) - SUCCESS
[2025-11-14 16:27:22] IPv6 HTTP connectivity test (ipv6check-http.steamserver.net / [2a01:bc80:7:100::9b85:f804]:80 ([2a01:bc80:7:100::9b85:f804]:80)) - server indicated we are using ipv6, external address = '2a02:21b4:c44c:7e00:458c:46c9:846:4382'
[2025-11-14 16:27:22] IPv6 UDP connectivity test (ipv6check-udp.steamserver.net / [2a01:bc80:a:101::b919:b625]:27019) - SUCCESS
[2025-11-14 16:27:23] Connectivity test: Starting test, fetching 'http://test.steampowered.com/204'
[2025-11-14 16:27:23] Connectivity test (193.247.41.8:80 (193.247.41.8:80)): OK!
[2025-11-14 16:27:23] Connectivity test: result=Connected (since 249142.3s ago), prev=Unknown, in progress=0
[2025-11-14 16:27:26] [Logged Off, 4, 0] [U:1:131317002] LogOff()
[2025-11-14 16:27:27] [Logged Off, 0, 0] [U:1:131317002] CCMInterface::SetSteamID( [U:1:131317002] )
[2025-11-14 16:27:27] [Logged Off, 4, 0] [U:1:131317002] LogOn() called; not connected yet, scheduling connection. Schedule init returned 1
[2025-11-14 16:27:27] CCMInterface::YieldingConnect -- calling ISteamDirectory/GetCMListForConnect/?cellid=88&qoslevel=1
[2025-11-14 16:27:27] GetCMListForConnect -- got 7 Netfilter CMs and 86 WebSocket CMs
[2025-11-14 16:27:27] GetCMListForConnect -- DC 'fra2' count: 24
[2025-11-14 16:27:27] GetCMListForConnect -- DC 'fra1' count: 24
[2025-11-14 16:27:27] GetCMListForConnect -- DC 'sto2' count: 22
[2025-11-14 16:27:27] GetCMListForConnect -- DC 'sto1' count: 23
[2025-11-14 16:27:27] [Connecting, 4, 0] [U:1:131317002] PingWebSocketCM() (cmp1-fra2.steamserver.net:27023) starting...
[2025-11-14 16:27:27] [Connecting, 4, 0] [U:1:131317002] PingWebSocketCM() (cmp1-fra2.steamserver.net:27022) starting...
[2025-11-14 16:27:27] [Connecting, 4, 0] [U:1:131317002] PingWebSocketCM() (cmp2-fra1.steamserver.net:27019) starting...
[2025-11-14 16:27:27] [Connecting, 4, 0] [U:1:131317002] PingWebSocketCM() (cmp1-fra1.steamserver.net:27020) starting...
[2025-11-14 16:27:28] [Connecting, 4, 0] [U:1:131317002] PingWebSocketCM() (cmp1-fra2.steamserver.net:27022) results: 31.2500ms + load 46.0000
[2025-11-14 16:27:28] [Connecting, 4, 0] [U:1:131317002] PingWebSocketCM() stopping early for good host (cmp1-fra2.steamserver.net:27022)
[2025-11-14 16:27:28] [Connecting, 4, 0] [U:1:131317002] PingWebSocketCM() (cmp2-fra1.steamserver.net:27019) results: 31.2500ms + load 45.0000
[2025-11-14 16:27:28] [Connecting, 4, 0] [U:1:131317002] PingWebSocketCM() (cmp1-fra2.steamserver.net:27023) results: 46.8750ms + load 42.0000
[2025-11-14 16:27:28] [Connecting, 4, 0] [U:1:131317002] PingWebSocketCM() (cmp1-fra1.steamserver.net:27020) results: 31.2500ms + load 44.0000
[2025-11-14 16:27:28] [Connecting, 4, 47] [U:1:131317002] Connect() starting connection (eNetQOSLevelLow, cmp1-fra1.steamserver.net:27020, WebSocket)
[2025-11-14 16:27:28] [Connecting, 4, 47] [U:1:131317002] ConnectionCompleted() (155.133.250.4:27020, WebSocket) local address (192.168.0.230:43113)
[2025-11-14 16:27:28] [Connecting, 4, 47] [U:1:131317002] Client thinks it can connect via: UDP - yes, TCP - yes, WebSocket:443 - yes, WebSocket:Non443 - yes
[2025-11-14 16:27:28] [Connected, 4, 47] [U:1:131317002] Logging on [U:1:131317002]
[2025-11-14 16:27:28] [Logging On, 4, 47] [U:1:131317002] Using JWT 6345095158986206709, persistence: 1, steamid: [U:1:131317002], issued: Mon Aug 19 21:34:33 2024, expiry: Sun Feb  8 08:38:53 2026
[2025-11-14 16:27:28] [Logging On, 4, 47] [U:1:131317002] RecvMsgClientLogOnResponse() : [U:1:131317002] 'OK'
[2025-11-14 16:27:28] [Logged On, 4, 47] [U:1:131317002] RecvMsgClientLogOnResponse() : processing complete
[2025-11-14 16:27:37] CCMInterface::RequestWebAccessToken - can't request new access token [3]
[2025-11-14 16:27:37] CClientJobGetWGAuthToken: Failed to get access token for client
[2025-11-14 16:27:39] IPv6 HTTP connectivity test (ipv6check-http.steamserver.net / [2a01:bc80:7:100::9b85:f804]:80 ([2a01:bc80:7:100::9b85:f804]:80)) - SUCCESS
[2025-11-14 16:27:39] IPv6 HTTP connectivity test (ipv6check-http.steamserver.net / [2a01:bc80:7:100::9b85:f804]:80 ([2a01:bc80:7:100::9b85:f804]:80)) - server indicated we are using ipv6, external address = '2a02:21b4:c44c:7e00:458c:46c9:846:4382'
[2025-11-14 16:27:39] IPv6 UDP connectivity test (ipv6check-udp.steamserver.net / [2a01:bc80:4:100::13]:27019) - SUCCESS
Ttoupeira 2025-11-24 github

I found a workaround: https://github.com/ValveSoftware/steam-for-linux/issues/9966#issuecomment-3569813134

Closing this issue since the root cause seems to be the same as https://github.com/ValveSoftware/steam-for-linux/issues/9966, i.e. Steam adds long delays when it can't connect to NetworkManager's DBus interface.