Open seishun opened 1 year ago
main
URL to the section(s) of the book with this problem: https://rust-book.cs.brown.edu/ch20-03-graceful-shutdown-and-cleanup.html#signaling-to-the-threads-to-stop-listening-for-jobs
Description of the problem:
For instance, the handle_connection function in src/main.rs has let mut buffer = [0; 1024]; as the first line instead of using BufReader.
handle_connection
let mut buffer = [0; 1024];
BufReader
Suggested fix:
Update the full code to match the listings.
main
branch to see if this has already been fixedURL to the section(s) of the book with this problem: https://rust-book.cs.brown.edu/ch20-03-graceful-shutdown-and-cleanup.html#signaling-to-the-threads-to-stop-listening-for-jobs
Description of the problem:
For instance, the
handle_connection
function in src/main.rs haslet mut buffer = [0; 1024];
as the first line instead of usingBufReader
.Suggested fix:
Update the full code to match the listings.