-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Description
We observed steadily rising open file descriptors count in long‑running applications using rustrtc when peer connections are created and closed repeatedly. The FD count grows quickly over time and does not return to baseline.
Root cause appears to be ICE lifecycle cleanup: the ICE runner task never exits on Closed, and gathered UDP sockets / TURN clients remain referenced after IceTransport::stop(), so their FDs stay open.
I implemented this fix in our fork, which seems to have worked, I can submit a PR if you think it looks good:
- Exit
IceTransportRunnerwhen ICE state becomesClosed(so it doesn’t retainArc<IceTransportInner>) forever). - In
IceTransport::stop(), clearIceGatherersocket and TURN client collections and reset selected socket/pair.
yeoleobun
Metadata
Metadata
Assignees
Labels
No labels