X-Git-Url: https://piware.de/gitweb/?p=learn-rust.git;a=blobdiff_plain;f=simple-http%2Fsrc%2Fbin%2Fmain.rs;h=4d642aa2848b7a075e8561ca8b3a659d5a5111c3;hp=ff3af27cc51c09985a0d6b999373a4de717d4d97;hb=4b27e7395888e450ce52e74bf259715105f3071c;hpb=769d09958d7078847879f96b00c018c93c073072 diff --git a/simple-http/src/bin/main.rs b/simple-http/src/bin/main.rs index ff3af27..4d642aa 100644 --- a/simple-http/src/bin/main.rs +++ b/simple-http/src/bin/main.rs @@ -65,7 +65,7 @@ fn main() { let listener = TcpListener::bind("127.0.0.1:7878").unwrap(); let pool = ThreadPool::new(4); - for stream in listener.incoming() { + for stream in listener.incoming() /* for testing cleanup: .take(2) */ { let stream = stream.unwrap(); pool.execute(|| handle_connection(stream)); }