-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
A-docsArea: documentation.Area: documentation.E-easyEffort: easy. A task that would be a great starting point for a new contributor.Effort: easy. A task that would be a great starting point for a new contributor.
Description
Version
1.3.1
Platform
Ubuntu 23.10
Description
I am using hyper-util auto
server. I return an error from service. Instead of sending GOAWAY and closing connection hyper sends RST_STREAM. I looked into documentation and it looks like the connection should closed, but it sends RST.
let mut builder = Builder::new(TokioExecutor::new());;
.............
let service = service_fn(move |request| {
async move {
println!("request");
Err::<Response<String>, &str>("error")
}
}
if let Err(err) = builder.serve_connection(stream, service).await {
println!("{err}")
}
Metadata
Metadata
Assignees
Labels
A-docsArea: documentation.Area: documentation.E-easyEffort: easy. A task that would be a great starting point for a new contributor.Effort: easy. A task that would be a great starting point for a new contributor.