Skip to content

steamwebrtc: Let resolver threads exit after the lookup - #442

Open
tintinhamans wants to merge 1 commit into
ValveSoftware:masterfrom
tintinhamans:fix/webrtc-resolver-threads
Open

tintinhamans wants to merge 1 commit into
ValveSoftware:masterfrom
tintinhamans:fix/webrtc-resolver-threads

Conversation

@tintinhamans

Copy link
Copy Markdown

Fixes #439

ice_session.cpp now gives its BasicPacketSocketFactory a resolver whose thread exits once the lookup is done, instead of idling until the port is destroyed.

A resolver destroyed mid-lookup hands its thread to a list that's joined when the last session goes away, so it neither stalls the socket thread nor outlives GameNetworkingSockets_Kill().

Native ICE is the default now, so this avoids a WebRTC update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WebRTC ICE keeps an idle thread per STUN/TURN hostname lookup

1 participant