mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-09 09:09:03 +03:00
refactor: optimize http range parsing and handling (#323)
This commit is contained in:
@@ -95,7 +95,7 @@ fn serve(args: Args, running: Arc<AtomicBool>) -> Result<Vec<JoinHandle<()>>> {
|
||||
let (cnx, addr) = listener.accept().await.unwrap();
|
||||
let Ok(stream) = tls_accepter.accept(cnx).await else {
|
||||
eprintln!(
|
||||
"Warning during tls handshake connection from {}",
|
||||
"WARNING during tls handshake connection from {}",
|
||||
addr
|
||||
);
|
||||
continue;
|
||||
@@ -172,7 +172,7 @@ where
|
||||
};
|
||||
match err.downcast_ref::<std::io::Error>() {
|
||||
Some(err) if err.kind() == std::io::ErrorKind::UnexpectedEof => {}
|
||||
_ => eprintln!("Warning serving connection{}: {}", scope, err),
|
||||
_ => eprintln!("WARNING serving connection{}: {}", scope, err),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user