Skip to content

Question: why there will exist two listener FDs #2801

@BamLubi

Description

@BamLubi

Problem:

I'm trying to realize the connection migration related to UDP.
I found that there will exist two FDS on the same UDP port, the simplest test is as follows.

#[tokio::test]
async fn test() {
    let server = Server::builder()
        .with_tls((
            std::path::Path::new("./certificates/www.example.org.cert.pem"),
            std::path::Path::new("./certificates/www.example.org.key.pem"),
        ))
        .unwrap()
        .with_io("127.0.0.1:1443")
        .unwrap()
        .start()
        .unwrap();
    tokio::time::sleep(tokio::time::Duration::from_secs(60)).await;
    drop(server);
}
Image

I wonder to know how to make only one listener FD on single port.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions