Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Socket files for mDNS not closed after closing peer_connection? #601

Open
deepushajia opened this issue Aug 13, 2024 · 1 comment
Open

Comments

@deepushajia
Copy link

/home/nvidia/.cargo/registry/src/index.crates.io-6f17d22bba15001f/webrtc-mdns-0.6.1/src/conn/mod.rs:75 | Error getting interfaces: Os { code: 24, kind: Uncategorized, message: "Too many open files" }

There seem to be a socket file leak happening,
My code is similar to the one here:
https://github.com/webrtc-rs/webrtc/blob/master/examples/examples/data-channels/data-channels.rs

Just that I am instantiating a tokio runtime async thread for every connection made, I make sure to use the peer_connection.close().await before the thread is closed. It works without issue normally, but when I reach somewhere around 200 connections (always occur at 190-210 range), this error pops up.

@tubzby
Copy link

tubzby commented Aug 28, 2024

Same here.
I use lsof -n -p $pid to monitor the file description and it keep on increasing.

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

No branches or pull requests

2 participants