why dose it fail the test, throw error: “error reading from connection: read tcp 127.0.0.1:42154->127.0.0.1:9092: read: connection reset by peer
[tester::#WA6] Test failed”
for stream in listener.incoming() {
match stream {
Ok(mut stream) => {
let mut request_buf = [0; 12];
stream.read_exact(&mut request_buf).unwrap();
let response = &[&[0, 0, 0, 0], &request_buf[8..]].concat();
stream.write(response).unwrap();
stream.flush().unwrap();
}
Err(e) => {
println!("error: {}", e);
}
}
}