Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Understanding TcpStream, what's the next step after accepting connection?
Hi everyone, I'm working through Chapter 21 of the Rust book (multithreaded web server).
I have a TcpListener that successfully accepts connections:
for stream in listener.incoming() {
let stream = stream.unwrap();
println!("Connection established!");
}
The terminal prints "Connection established!" when I visit the URL, but the browser just hangs.
Questions:
I know I need to eventually parse HTTP requests, but right now I just want to understand the basic flow of:
2 posts - 2 participants
🏷️ Rust_feed