We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cc89b5 commit 73cdf31Copy full SHA for 73cdf31
examples/09_01_sync_tcp_server/src/main.rs
@@ -34,6 +34,6 @@ fn handle_connection(mut stream: TcpStream) {
34
// Write response back to the stream,
35
// and flush the stream to ensure the response is sent back to the client
36
let response = format!("{status_line}{contents}");
37
- stream.write(response.as_bytes()).unwrap();
+ stream.write_all(response.as_bytes()).unwrap();
38
stream.flush().unwrap();
39
}
0 commit comments