added other comments

try-to-manage-hyper-incomplete-message
Alessandro Caprarelli 2021-10-13 17:10:58 +02:00
parent fce3ea6d7e
commit 01b4ff9777
1 changed files with 2 additions and 0 deletions

View File

@ -220,6 +220,8 @@ async fn assert_retry_on_incomplete_message() {
let incomplete_message = "HTTP/1.1";
let complete_message = "HTTP/1.1 200 OK\r\n\r\n";
// create a SimpleServer that returns the correct response after 3 attempts.
// the first 3 attempts are incomplete http response and internally they result in a [`hyper::Error(IncompleteMessage)`] error.
let simple_server = SimpleServer::new(
"127.0.0.1",
None,