Skip to content

Does not re-attempt to connect if it encounters a network error while connecting #512

@nolddor

Description

@nolddor

Seems like steam-user does not re-attempt to connect if it encounters a network error while connecting anymore as also described in some comments at #507

Versions

node --version
v20.18.2

cat node_modules/steam-user/package.json | grep version
        "version": "5.2.0",

Screenshots and Error Logs

Here are the logs after this week maintenace reboot.

[2025-02-19 00:02:25] [DEBUG] [W1] WebSocket closed by remote with code 1006 and reason "Socket closed"                                                                                    
[2025-02-19 00:02:25] [DEBUG] [W1] Handling connection close                                                                                                                                                                                                                                                                                   
[2025-02-19 00:02:25] [DEBUG] Disconnecting without sending logoff                                                                                                                         
[2025-02-19 00:02:25] [DEBUG] [W1] We wanted to end connection, but it's not connected or connecting                                                                                       
[2025-02-19 00:02:25] [DEBUG] [EBO] Queueing exponential backoff "logOn" with timeout 1000                                                                                                
[2025-02-19 00:02:26] [DEBUG] API GET request to https://api.steampowered.com/ISteamDirectory/GetCMListForConnect/v0001/?format=vdf&cellid=40: 200                                         
[2025-02-19 00:02:26] [DEBUG] Randomly chose websockets server cmp2-mad1.steamserver.net:443 (load = 10, wtd_load = 6.640289306640625)                                                     
[2025-02-19 00:02:26] [DEBUG] [W2] Connecting to WebSocket CM cmp2-mad1.steamserver.net:443                                                                                                
[2025-02-19 00:02:27] [DEBUG] [W2] WS connection timed out                                                                                                                                 
[2025-02-19 00:02:27] [DEBUG] [WebAPI] Using cached value for API_GET_https://api.steampowered.com/ISteamDirectory/GetCMListForConnect/v0001/                                              
[2025-02-19 00:02:27] [DEBUG] Randomly chose websockets server cmp2-mad1.steamserver.net:27018 (load = 15, wtd_load = 6.37919998168945312)                                                 
[2025-02-19 00:02:27] [DEBUG] [W3] Connecting to WebSocket CM cmp2-mad1.steamserver.net:27018                                                                                              
[2025-02-19 00:02:29] [DEBUG] [W3] WS connection timed out                                                                                                                                 
[2025-02-19 00:02:29] [DEBUG] [WebAPI] Using cached value for API_GET_https://api.steampowered.com/ISteamDirectory/GetCMListForConnect/v0001/                                              
[2025-02-19 00:02:29] [DEBUG] Randomly chose websockets server cmp2-mad1.steamserver.net:443 (load = 10, wtd_load = 6.640289306640625)                                                     
[2025-02-19 00:02:29] [DEBUG] [W4] Connecting to WebSocket CM cmp2-mad1.steamserver.net:443                                                                                               
[2025-02-19 00:02:33] [DEBUG] [W4] WS connection timed out                                                                                                                                 
[2025-02-19 00:02:33] [DEBUG] [WebAPI] Using cached value for API_GET_https://api.steampowered.com/ISteamDirectory/GetCMListForConnect/v0001/                                              
[2025-02-19 00:02:33] [DEBUG] Randomly chose websockets server cmp2-mad1.steamserver.net:443 (load = 10, wtd_load = 6.640289306640625)                                                     
[2025-02-19 00:02:33] [DEBUG] [W5] Connecting to WebSocket CM cmp2-mad1.steamserver.net:443                                                                                                
[2025-02-19 00:02:41] [DEBUG] [W5] WS connection timed out                                                                                                                                 
[2025-02-19 00:02:41] [DEBUG] [WebAPI] Using cached value for API_GET_https://api.steampowered.com/ISteamDirectory/GetCMListForConnect/v0001/                                              
[2025-02-19 00:02:41] [DEBUG] Randomly chose websockets server cmp2-mad1.steamserver.net:443 (load = 10, wtd_load = 6.640289306640625)                                                     
[2025-02-19 00:02:41] [DEBUG] [W6] Connecting to WebSocket CM cmp2-mad1.steamserver.net:443
[2025-02-19 00:02:47] [DEBUG] [W6] WebSocket disconnected with error: Response code 502
[2025-02-19 00:02:47] [DEBUG] [W6] Handling connection close
[2025-02-19 00:02:48] [DEBUG] [WebAPI] Using cached value for API_GET_https://api.steampowered.com/ISteamDirectory/GetCMListForConnect/v0001/

^ At this point DEBUG logs are stuck and no more traces were emitted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions