http load test: add keep_alive setting

This commit is contained in:
Joakim Frostegård 2022-04-10 01:01:34 +02:00
parent da6180e871
commit 7215d26ff4
2 changed files with 6 additions and 0 deletions

View file

@ -138,6 +138,10 @@ impl Connection {
loop {
self.send_request().await?;
self.read_response().await?;
if !self.config.keep_alive {
break Ok(());
}
}
}