mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 18:25:30 +00:00
http: don't always close connection after sending error response
This commit is contained in:
parent
921fb57e9e
commit
79d8a3b6f3
1 changed files with 1 additions and 1 deletions
|
|
@ -171,7 +171,7 @@ where
|
||||||
|
|
||||||
self.write_response(&response, peer_addr).await?;
|
self.write_response(&response, peer_addr).await?;
|
||||||
|
|
||||||
if matches!(response, Response::Failure(_)) || !self.config.network.keep_alive {
|
if !self.config.network.keep_alive {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue