Native ICE resolves STUN/TURN hostnames under the global lock

Author: tintinhamansCreated Sep 25, 2026Updated Sep 25, 2026

CConnectionTransportP2PICE_Valve::Init holds the global lock while constructing CSteamNetworkingICESession, whose constructor calls a blocking getaddrinfo for each STUN/TURN hostname.

With slow or unreachable DNS, every new P2P connection stalls the whole library, including existing connections.

Source: ValveSoftware/GameNetworkingSockets