Server: close nicely when no response
This commit is contained in:
parent
a95efd9ed8
commit
86cf2f9665
1 changed files with 10 additions and 2 deletions
|
|
@ -192,7 +192,12 @@ pub async fn play(
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
println!("No response found for {conn_id}-{req_id} SNI=`{server_name}`");
|
if debug {
|
||||||
|
println!(
|
||||||
|
"No response found for {conn_id}-{req_id} SNI=`{server_name}`"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stream.get_mut().shutdown().await.unwrap();
|
stream.get_mut().shutdown().await.unwrap();
|
||||||
|
|
@ -258,7 +263,10 @@ pub async fn play(
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
println!("No response found for {conn_id}-{req_id}");
|
if debug {
|
||||||
|
println!("No response found for {conn_id}-{req_id}");
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//println!("Server shutdown");
|
//println!("Server shutdown");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue