http: don't always close connection after sending error response

This commit is contained in:
Joakim Frostegård 2024-04-25 22:31:02 +02:00
parent 921fb57e9e
commit 79d8a3b6f3

View file

@ -171,7 +171,7 @@ where
self.write_response(&response, peer_addr).await?;
if matches!(response, Response::Failure(_)) || !self.config.network.keep_alive {
if !self.config.network.keep_alive {
break;
}
}