Skip to content

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

Open
@deepushajia

Description

/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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions