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

Investigate websocket timeouts #20850

Closed
wants to merge 13 commits into from

Add TCP connection logging.

  • Loading branch information
jdm committed Jun 7, 2018
commit 79891ad6b67d5ac04a521139b9c4f0a7347480ec
@@ -145,9 +145,11 @@ fn obtain_a_websocket_connection(url: &ServoUrl) -> Result<Stream, NetworkError>

// Steps 4-5.
let host = replace_host(host);
debug!("making TCP connection to {}:{}", host, port);
let tcp_stream = TcpStream::connect((&*host, port)).map_err(|e| {
NetworkError::Internal(format!("Could not connect to host: {}", e))
})?;
debug!("made TCP connection to {}:{}"), host, port);
Ok(HttpStream(tcp_stream))
}

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.