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

Add timeout for TLS handshakes #1514

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

fuzzypixelz
Copy link
Member

After establishing a TCP connections, the TLS link waits for the TLS handshake to complete in rustls. If the TLS handshake never takes place, then the TLS link waits forever and no one else can establish a Zenoh session. It is thus possible to block a router with a TLS on tls/127.0.0.1:7447 listener from servicing any incoming connections with the following:

fn main() {
    let _stream = TcpStream::connect("127.0.0.1:7447")?;
    thread::park();
}

@fuzzypixelz fuzzypixelz added the bug Something isn't working label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant